Skip to content

Commit 0eada10

Browse files
author
Luke Carbis
committed
Fix labelling of post status changes
1 parent ba6a30f commit 0eada10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

connectors/class-connector-posts.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ public function callback_transition_post_status( $new, $old, $post ) {
173173
'1: Post title, 2: Post type singular name',
174174
'stream'
175175
);
176+
} elseif ( 'publish' === $new && 'draft' === $old ) {
177+
$summary = _x(
178+
'"%1$s" %2$s published',
179+
'1: Post title, 2: Post type singular name',
180+
'stream'
181+
);
176182
} elseif ( 'draft' === $new ) {
177183
$summary = _x(
178184
'"%1$s" %2$s drafted',
@@ -197,12 +203,6 @@ public function callback_transition_post_status( $new, $old, $post ) {
197203
'1: Post title, 2: Post type singular name',
198204
'stream'
199205
);
200-
} elseif ( 'publish' === $new ) {
201-
$summary = _x(
202-
'"%1$s" %2$s published',
203-
'1: Post title, 2: Post type singular name',
204-
'stream'
205-
);
206206
} elseif ( 'private' === $new ) {
207207
$summary = _x(
208208
'"%1$s" %2$s privately published',

0 commit comments

Comments
 (0)