Make WordPress Core

Ticket #31040: 31040.1.diff

File 31040.1.diff, 672 bytes (added by joedolson, 3 years ago)

Refreshed patch

  • src/js/_enqueues/admin/post.js

     
    789789                        }
    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' ) );
    795795                        } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {