Skip to content
Permalink
Browse files

Fix labelling of post status changes

  • Loading branch information...
Luke Carbis
Luke Carbis committed Nov 27, 2015
1 parent ba6a30f commit 0eada108b443ed3b6f9bdae3f1e4c87c77128a0a
Showing with 6 additions and 6 deletions.
  1. +6 −6 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',

0 comments on commit 0eada10

Please sign in to comment.
You can’t perform that action at this time.