diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index 4e66070292..607349b04a 100644
|
|
|
final class WP_Customize_Manager {
|
| 4583 | 4583 | $changeset_post = get_post( $changeset_post_id ); |
| 4584 | 4584 | } |
| 4585 | 4585 | |
| 4586 | | if ( $this->changeset_post_id() && 'future' === get_post_status( $this->changeset_post_id() ) ) { |
| 4587 | | $initial_date = get_the_time( 'Y-m-d H:i:s', $this->changeset_post_id() ); |
| 4588 | | } else { |
| 4589 | | $initial_date = current_time( 'mysql', false ); |
| | 4586 | // Determine initial date to be at present or future, not past. |
| | 4587 | $current_time = current_time( 'mysql', false ); |
| | 4588 | $initial_date = $current_time; |
| | 4589 | if ( $changeset_post ) { |
| | 4590 | $initial_date = get_the_time( 'Y-m-d H:i:s', $changeset_post->ID ); |
| | 4591 | if ( $initial_date < $current_time ) { |
| | 4592 | $initial_date = $current_time; |
| | 4593 | } |
| 4590 | 4594 | } |
| 4591 | 4595 | |
| 4592 | 4596 | $lock_user_id = false; |
| … |
… |
final class WP_Customize_Manager {
|
| 4607 | 4611 | 'statusChoices' => $status_choices, |
| 4608 | 4612 | 'lockUser' => $lock_user_id ? $this->get_lock_user_data( $lock_user_id ) : null, |
| 4609 | 4613 | ), |
| 4610 | | 'initialServerDate' => current_time( 'mysql', false ), |
| | 4614 | 'initialServerDate' => $current_time, |
| 4611 | 4615 | 'dateFormat' => get_option( 'date_format' ), |
| 4612 | 4616 | 'timeFormat' => get_option( 'time_format' ), |
| 4613 | 4617 | 'initialServerTimestamp' => floor( microtime( true ) * 1000 ), |