Changeset 45851 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/19/2019 03:49:32 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r45779 r45851 3664 3664 3665 3665 if ( 'attachment' !== $post_type ) { 3666 if ( 'publish' == $post_status ) {3667 $now = gmdate( 'Y-m-d H:i:59' );3668 if ( mysql2date( 'U', $post_date_gmt, false ) > mysql2date( 'U', $now, false) ) {3666 if ( 'publish' === $post_status ) { 3667 // String comparison to work around far future dates (year 2038+) on 32-bit systems. 3668 if ( $post_date_gmt > gmdate( 'Y-m-d H:i:59' ) ) { 3669 3669 $post_status = 'future'; 3670 3670 } 3671 } elseif ( 'future' == $post_status ) { 3672 $now = gmdate( 'Y-m-d H:i:59' ); 3673 if ( mysql2date( 'U', $post_date_gmt, false ) <= mysql2date( 'U', $now, false ) ) { 3671 } elseif ( 'future' === $post_status ) { 3672 if ( $post_date_gmt <= gmdate( 'Y-m-d H:i:59' ) ) { 3674 3673 $post_status = 'publish'; 3675 3674 }
Note: See TracChangeset
for help on using the changeset viewer.