Changeset 46968 for trunk/src/wp-includes/post.php
- Timestamp:
- 12/17/2019 02:23:51 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46696 r46968 3754 3754 3755 3755 if ( 'attachment' !== $post_type ) { 3756 $now = gmdate( 'Y-m-d H:i:s' ); 3757 3756 3758 if ( 'publish' === $post_status ) { 3757 // String comparison to work around far future dates (year 2038+) on 32-bit systems. 3758 if ( $post_date_gmt > gmdate( 'Y-m-d H:i:59' ) ) { 3759 if ( strtotime( $post_date_gmt ) - strtotime( $now ) >= MINUTE_IN_SECONDS ) { 3759 3760 $post_status = 'future'; 3760 3761 } 3761 3762 } elseif ( 'future' === $post_status ) { 3762 if ( $post_date_gmt <= gmdate( 'Y-m-d H:i:59' )) {3763 if ( strtotime( $post_date_gmt ) - strtotime( $now ) < MINUTE_IN_SECONDS ) { 3763 3764 $post_status = 'publish'; 3764 3765 }
Note: See TracChangeset
for help on using the changeset viewer.