WordPress.org

Make WordPress Core

Ticket #12751: bmb_0002_t12751.patch

File bmb_0002_t12751.patch, 573 bytes (added by bumbu, 5 years ago)
  • wp-includes/post.php

     
    21312131                $now = gmdate('Y-m-d H:i:59'); 
    21322132                if ( mysql2date('U', $post_date_gmt, false) > mysql2date('U', $now, false) ) 
    21332133                        $post_status = 'future'; 
     2134        }elseif( 'future' == $post_status ){ 
     2135                $now = gmdate('Y-m-d H:i:59'); 
     2136                if ( mysql2date('U', $post_date_gmt, false) <= mysql2date('U', $now, false) ) 
     2137                        $post_status = 'publish'; 
    21342138        } 
    21352139 
    21362140        if ( empty($comment_status) ) {