Skip to content

Commit

Permalink
Editor: Show scheduled text when changing to new future dates.
Browse files Browse the repository at this point in the history
In the classic editor, fix the publish status change text shown when a future post's date is changed to a different future date. Show 'scheduled' statement instead of 'publish' statement.

Props tyxla, sdavis2702, joedolson.
Fixes #31040.
Built from https://develop.svn.wordpress.org/trunk@55561


git-svn-id: http://core.svn.wordpress.org/trunk@55073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
joedolson committed Mar 18, 2023
1 parent 514460e commit d498974
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wp-admin/js/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ jQuery( function($) {
}

// Determine what the publish should be depending on the date and post status.
if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) {
if ( attemptedDate > currentDate ) {
publishOn = __( 'Schedule for:' );
$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
Expand Down
Loading

0 comments on commit d498974

Please sign in to comment.