Skip to content

Commit b5db272

Browse files
Merge branch 'release/4.3'
2 parents 06c15a8 + e30c751 commit b5db272

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

duplicate-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin Name: Yoast Duplicate Post
1010
* Plugin URI: https://yoast.com/wordpress/plugins/duplicate-post/
1111
* Description: The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.
12-
* Version: 4.2
12+
* Version: 4.3-RC1
1313
* Author: Enrico Battocchi & Team Yoast
1414
* Author URI: https://yoast.com
1515
* Text Domain: duplicate-post
@@ -45,7 +45,7 @@
4545
define( 'DUPLICATE_POST_PATH', plugin_dir_path( __FILE__ ) );
4646
}
4747

48-
define( 'DUPLICATE_POST_CURRENT_VERSION', '4.2' );
48+
define( 'DUPLICATE_POST_CURRENT_VERSION', '4.3-RC1' );
4949

5050
$duplicate_post_autoload_file = DUPLICATE_POST_PATH . 'vendor/autoload.php';
5151

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"@wordpress/plugins": "^2.23.0"
5454
},
5555
"yoast": {
56-
"pluginVersion": "4.2"
56+
"pluginVersion": "4.3"
5757
}
5858
}

readme.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ New features and customization, WP 3.0 compatibility: you should upgrade if you
151151

152152
== Changelog ==
153153

154+
= 4.3 (2021-12-14) =
155+
156+
Bugfixes:
157+
158+
* Fixes a bug where Rewrite & Republish copies could be displayed and queried in the front end.
159+
154160
= 4.2 (2021-11-18) =
155161

156162
Bugfixes:

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)