mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Editor: Show scheduled text when changing to new future dates.
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55561 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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' ) {
|
||||
|
||||
Reference in New Issue
Block a user