• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / duplicate-post / 6985549251

24 Nov 2023 11:29PM UTC coverage: 50.162% (+1.6%) from 48.608%
6985549251

push

github

web-flow
Merge pull request #340 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

1236 of 2464 relevant lines covered (50.16%)

1.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/duplicate-post.php
1
<?php
2

3
namespace Yoast\WP\Duplicate_Post;
4

5
use Yoast\WP\Duplicate_Post\Handlers\Handler;
6
use Yoast\WP\Duplicate_Post\UI\User_Interface;
7
use Yoast\WP\Duplicate_Post\Watchers\Watchers;
8

9
/**
10
 * Duplicate Post main class.
11
 *
12
 * @since 4.0
13
 */
14
class Duplicate_Post {
15

16
        /**
17
         * Permissions_Helper object.
18
         *
19
         * @var Permissions_Helper
20
         */
21
        protected $permissions_helper;
22

23
        /**
24
         * User_Interface object.
25
         *
26
         * @var User_Interface
27
         */
28
        protected $user_interface;
29

30
        /**
31
         * Post_Duplicator object.
32
         *
33
         * @var Post_Duplicator
34
         */
35
        protected $post_duplicator;
36

37
        /**
38
         * Handler object.
39
         *
40
         * @var Handler
41
         */
42
        protected $handler;
43

44
        /**
45
         * Post_Republisher object.
46
         *
47
         * @var Post_Republisher
48
         */
49
        protected $post_republisher;
50

51
        /**
52
         * Revisions_Migrator object.
53
         *
54
         * @var Revisions_Migrator
55
         */
56
        protected $revisions_migrator;
57

58
        /**
59
         * Watchers object.
60
         *
61
         * @var Watchers
62
         */
63
        protected $watchers;
64

65
        /**
66
         * Initializes the main class.
67
         */
68
        public function __construct() {
×
69
                $this->permissions_helper = new Permissions_Helper();
×
70
                $this->user_interface     = new User_Interface( $this->permissions_helper );
×
71
                $this->post_duplicator    = new Post_Duplicator();
×
72
                $this->handler            = new Handler( $this->post_duplicator, $this->permissions_helper );
×
73
                $this->post_republisher   = new Post_Republisher( $this->post_duplicator, $this->permissions_helper );
×
74
                $this->revisions_migrator = new Revisions_Migrator();
×
75
                $this->watchers           = new Watchers( $this->permissions_helper );
×
76

77
                $this->post_republisher->register_hooks();
×
78
                $this->revisions_migrator->register_hooks();
×
79
        }
80
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc