From 0eada108b443ed3b6f9bdae3f1e4c87c77128a0a Mon Sep 17 00:00:00 2001 From: Luke Carbis Date: Fri, 27 Nov 2015 11:56:09 +1000 Subject: [PATCH] Fix labelling of post status changes --- connectors/class-connector-posts.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/connectors/class-connector-posts.php b/connectors/class-connector-posts.php index 287a28b43..d4d52b002 100644 --- a/connectors/class-connector-posts.php +++ b/connectors/class-connector-posts.php @@ -173,6 +173,12 @@ public function callback_transition_post_status( $new, $old, $post ) { '1: Post title, 2: Post type singular name', 'stream' ); + } elseif ( 'publish' === $new && 'draft' === $old ) { + $summary = _x( + '"%1$s" %2$s published', + '1: Post title, 2: Post type singular name', + 'stream' + ); } elseif ( 'draft' === $new ) { $summary = _x( '"%1$s" %2$s drafted', @@ -197,12 +203,6 @@ public function callback_transition_post_status( $new, $old, $post ) { '1: Post title, 2: Post type singular name', 'stream' ); - } elseif ( 'publish' === $new ) { - $summary = _x( - '"%1$s" %2$s published', - '1: Post title, 2: Post type singular name', - 'stream' - ); } elseif ( 'private' === $new ) { $summary = _x( '"%1$s" %2$s privately published',