Ticket #21309: 21309-global.diff
File 21309-global.diff, 480 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
381 381 $null = null; 382 382 383 383 if ( empty( $post ) && isset( $GLOBALS['post'] ) ) { 384 if ( !is_a( $GLOBALS['post'], 'WP_Post' ) ) { 385 return get_post( $GLOBALS['post'], $output, $filter ); 386 } 387 384 388 $_post = & $GLOBALS['post']; 385 389 } elseif ( is_a( $post, 'WP_Post' ) ) { 386 390 $_post = $post;