Make WordPress Core

Changeset 55561


Ignore:
Timestamp:
03/18/2023 04:33:22 PM (21 months ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/post.js

    r52228 r55561  
    790790
    791791            // Determine what the publish should be depending on the date and post status.
    792             if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) {
     792            if ( attemptedDate > currentDate ) {
    793793                publishOn = __( 'Schedule for:' );
    794794                $('#publish').val( _x( 'Schedule', 'post action/button label' ) );
Note: See TracChangeset for help on using the changeset viewer.