From 81fd448129f5cd28d4671b1929f02d09807d4763 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sat, 18 Mar 2023 16:33:22 +0000 Subject: [PATCH] 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 --- src/js/_enqueues/admin/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/admin/post.js b/src/js/_enqueues/admin/post.js index c9b002a65a..6b96ad25f2 100644 --- a/src/js/_enqueues/admin/post.js +++ b/src/js/_enqueues/admin/post.js @@ -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' ) {