Make WordPress Core

Ticket #40585: 40585.diff

File 40585.diff, 829 bytes (added by swissspidy, 7 years ago)
  • src/wp-admin/includes/meta-boxes.php

    diff --git src/wp-admin/includes/meta-boxes.php src/wp-admin/includes/meta-boxes.php
    index ba43c7dbda..7f1bdf213f 100644
    if ( current_user_can( "delete_post", $post->ID ) ) { 
    264264<?php
    265265if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) {
    266266        if ( $can_publish ) :
    267                 if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
     267                if ( !empty($post->post_date_gmt) && current_time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    268268                <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    269269                <?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
    270270<?php   else : ?>