WordPress.org

Make WordPress Core

Ticket #42413: 42413.diff

File 42413.diff, 693 bytes (added by dlh, 4 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    45694569                        $changeset_post = get_post( $changeset_post_id );
    45704570                }
    45714571
    4572                 if ( $this->changeset_post_id() && 'future' === get_post_status( $this->changeset_post_id() ) ) {
     4572                if ( $this->changeset_post_id() && ( time() < get_post_time( 'U', true, $this->changeset_post_id() ) ) ) {
    45734573                        $initial_date = get_the_time( 'Y-m-d H:i:s', $this->changeset_post_id() );
    45744574                } else {
    45754575                        $initial_date = current_time( 'mysql', false );