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. Built from https://develop.svn.wordpress.org/trunk@55561 git-svn-id: http://core.svn.wordpress.org/trunk@55073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
514460e505
commit
d49897485b
|
@ -789,7 +789,7 @@ jQuery( function($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine what the publish should be depending on the date and post status.
|
// 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:' );
|
publishOn = __( 'Schedule for:' );
|
||||||
$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
|
$('#publish').val( _x( 'Schedule', 'post action/button label' ) );
|
||||||
} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
|
} else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55560';
|
$wp_version = '6.3-alpha-55561';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue