Changeset 42109
- Timestamp:
- 11/02/2017 07:59:55 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r42107 r42109 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 … … 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' ),
Note: See TracChangeset
for help on using the changeset viewer.