Skip to content

Commit

Permalink
Fix labelling of post status changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carbis committed Nov 27, 2015
1 parent ba6a30f commit 0eada10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions connectors/class-connector-posts.php
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 0eada10

Please sign in to comment.