Skip to content

Commit d96ed28

Browse files
authored
Merge pull request #213 from Yoast/DUPP-32-set-post-type-to-not-public
DUPP-32 Set `dp-rewrite-republish` as `'public' => false`
2 parents 06c15a8 + c77933e commit d96ed28

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/post-republisher.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public function register_hooks() {
8181
public function register_post_statuses() {
8282
$options = [
8383
'label' => \__( 'Republish', 'duplicate-post' ),
84-
'public' => true,
8584
'exclude_from_search' => false,
8685
'show_in_admin_all_list' => false,
8786
'show_in_admin_status_list' => false,

tests/post-republisher-test.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Post_Republisher_Test extends TestCase {
1717
/**
1818
* The instance.
1919
*
20-
* @var Post_Republisher
20+
* @var Post_Republisher|\Mockery\Mock
2121
*/
2222
protected $instance;
2323

@@ -31,7 +31,7 @@ class Post_Republisher_Test extends TestCase {
3131
/**
3232
* Holds the permissions helper.
3333
*
34-
* @var Permissions_Helper
34+
* @var Permissions_Helper|\Mockery\Mock
3535
*/
3636
protected $permissions_helper;
3737

@@ -157,7 +157,6 @@ public function test_register_post_statuses() {
157157

158158
$options = [
159159
'label' => 'Republish',
160-
'public' => true,
161160
'exclude_from_search' => false,
162161
'show_in_admin_all_list' => false,
163162
'show_in_admin_status_list' => false,

0 commit comments

Comments
 (0)