Make WordPress Core

Ticket #14408: 14408.2.diff

File 14408.2.diff, 654 bytes (added by obenland, 11 years ago)
  • wp-includes/class-wp.php

     
    458458                $GLOBALS['post'] = (isset($wp_query->post)) ? $wp_query->post : null;
    459459                $GLOBALS['request'] = $wp_query->request;
    460460
    461                 if ( is_single() || is_page() ) {
    462                         $GLOBALS['more'] = 1;
     461                if ( $wp_query->is_single() || $wp_query->is_page() ) {
     462                        $GLOBALS['more']   = 1;
    463463                        $GLOBALS['single'] = 1;
    464464                }
     465
     466                if ( $wp_query->is_main_query() && $wp_query->is_author() )
     467                        $GLOBALS['authordata'] = $wp_query->get_queried_object();
    465468        }
    466469
    467470        /**