WordPress.org

Make WordPress Core

Ticket #13753: 13753.diff

File 13753.diff, 634 bytes (added by ryan, 11 years ago)
  • wp-includes/post.php

     
    28652865 * @return mixed Page data.
    28662866 */
    28672867function &get_page(&$page, $output = OBJECT, $filter = 'raw') {
    2868         if ( empty($page) ) {
    2869                 if ( isset( $GLOBALS['post'] ) && isset( $GLOBALS['post']->ID ) ) {
    2870                         return get_post($GLOBALS['post'], $output, $filter);
    2871                 } else {
    2872                         $page = null;
    2873                         return $page;
    2874                 }
    2875         }
    2876 
    2877         $the_page = get_post($page, $output, $filter);
    2878         return $the_page;
     2868        return get_post($page, $output, $filter);
    28792869}
    28802870
    28812871/**