• 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/ui/user-interface.php
1
<?php
2

3
namespace Yoast\WP\Duplicate_Post\UI;
4

5
use Yoast\WP\Duplicate_Post\Permissions_Helper;
6

7
/**
8
 * Duplicate Post user interface.
9
 */
10
class User_Interface {
11

12
        /**
13
         * Holds the permissions helper.
14
         *
15
         * @var Permissions_Helper
16
         */
17
        protected $permissions_helper;
18

19
        /**
20
         * Holds the object to manage the row actions for the post.
21
         *
22
         * @var Row_Actions
23
         */
24
        protected $row_actions;
25

26
        /**
27
         * Holds the object to manage the classic editor UI.
28
         *
29
         * @var Classic_Editor
30
         */
31
        protected $classic_editor;
32

33
        /**
34
         * Holds the object to manage the block editor UI.
35
         *
36
         * @var Block_Editor
37
         */
38
        protected $block_editor;
39

40
        /**
41
         * Holds the object to manage the admin bar links.
42
         *
43
         * @var Admin_Bar
44
         */
45
        protected $admin_bar;
46

47
        /**
48
         * Holds the object to manage the bulk actions dropdown.
49
         *
50
         * @var Bulk_Actions
51
         */
52
        protected $bulk_actions;
53

54
        /**
55
         * Post states object.
56
         *
57
         * @var Post_States
58
         */
59
        protected $post_states;
60

61
        /**
62
         * Metabox object.
63
         *
64
         * @var Metabox
65
         */
66
        protected $metabox;
67

68
        /**
69
         * Newsletter object.
70
         *
71
         * @var Newsletter
72
         */
73
        protected $newsletter;
74

75
        /**
76
         * Column object.
77
         *
78
         * @var Column
79
         */
80
        protected $column;
81

82
        /**
83
         * Holds the object to create the action link to duplicate.
84
         *
85
         * @var Link_Builder
86
         */
87
        protected $link_builder;
88

89
        /**
90
         * Holds the object to create the action link to duplicate.
91
         *
92
         * @var Asset_Manager
93
         */
94
        protected $asset_manager;
95

96
        /**
97
         * Initializes the class.
98
         *
99
         * @param Permissions_Helper $permissions_helper The permissions helper object.
100
         */
101
        public function __construct( Permissions_Helper $permissions_helper ) {
×
102
                $this->permissions_helper = $permissions_helper;
×
103
                $this->link_builder       = new Link_Builder();
×
104
                $this->asset_manager      = new Asset_Manager();
×
105
                $this->asset_manager->register_hooks();
×
106

107
                $this->admin_bar      = new Admin_Bar( $this->link_builder, $this->permissions_helper, $this->asset_manager );
×
108
                $this->block_editor   = new Block_Editor( $this->link_builder, $this->permissions_helper, $this->asset_manager );
×
109
                $this->bulk_actions   = new Bulk_Actions( $this->permissions_helper );
×
110
                $this->column         = new Column( $this->permissions_helper, $this->asset_manager );
×
111
                $this->metabox        = new Metabox( $this->permissions_helper );
×
112
                $this->newsletter     = new Newsletter();
×
113
                $this->post_states    = new Post_States( $this->permissions_helper );
×
114
                $this->classic_editor = new Classic_Editor( $this->link_builder, $this->permissions_helper, $this->asset_manager );
×
115
                $this->row_actions    = new Row_Actions( $this->link_builder, $this->permissions_helper );
×
116

117
                $this->admin_bar->register_hooks();
×
118
                $this->block_editor->register_hooks();
×
119
                $this->bulk_actions->register_hooks();
×
120
                $this->column->register_hooks();
×
121
                $this->metabox->register_hooks();
×
122
                $this->post_states->register_hooks();
×
123
                $this->classic_editor->register_hooks();
×
124
                $this->row_actions->register_hooks();
×
125
        }
126
}
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