Skip to content

Commit 7079ad1

Browse files
committed
Fix: Show update button when post is published public from private
1 parent 74b60c2 commit 7079ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/_enqueues/admin/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ jQuery( function($) {
775775
if ( attemptedDate > currentDate ) {
776776
publishOn = __( 'Schedule for:' );
777777
$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
778-
} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
778+
} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' && 0 === postId ) {
779779
publishOn = __( 'Publish on:' );
780780
$('#publish').val( __( 'Publish' ) );
781781
} else {

0 commit comments

Comments
 (0)