Ticket #12955: post.php.diff
File post.php.diff, 687 bytes (added by , 15 years ago) |
---|
-
wp-includes/post.php
338 338 function &get_post(&$post, $output = OBJECT, $filter = 'raw') { 339 339 global $wpdb; 340 340 $null = null; 341 341 342 342 if ( empty($post) ) { 343 343 if ( isset($GLOBALS['post']) ) 344 344 $_post = & $GLOBALS['post']; … … 361 361 wp_cache_add($_post->ID, $_post, 'posts'); 362 362 } 363 363 } 364 364 365 365 if ($filter != 'raw') 366 366 $_post = sanitize_post($_post, $filter); 367 367 368 $_post = apply_filters( 'get_post', $_post ); 369 368 370 if ( $output == OBJECT ) { 369 371 return $_post; 370 372 } elseif ( $output == ARRAY_A ) {