WordPress.org

Make WordPress Core

Ticket #21580: 21580v2.diff

File 21580v2.diff, 487 bytes (added by MattyRob, 3 years ago)
  • wp-includes/post.php

     
    28122812 * @return null Nothing is returned. Which can mean that no action is required or post was published. 
    28132813 */ 
    28142814function check_and_publish_future_post($post_id) { 
    2815  
     2815        global $post; 
    28162816        $post = get_post($post_id); 
     2817        global $post_id; 
     2818        $post_id = $post->ID; 
    28172819 
    28182820        if ( empty($post) ) 
    28192821                return;