WordPress.org

Make WordPress Core

Ticket #23329: 23329.patch

File 23329.patch, 971 bytes (added by ethitter, 15 months ago)
  • wp-includes/deprecated.php

     
    33643364        } 
    33653365        return false; 
    33663366} 
     3367 
     3368/** 
     3369 * Is the query the main query? 
     3370 * 
     3371 * @since 3.3.0 
     3372 * @deprecated  3.6.0 
     3373 * 
     3374 * @return bool 
     3375 */ 
     3376function is_main_query() { 
     3377        _deprecated_function( __FUNCTION__, '3.6' ); 
     3378 
     3379        global $wp_query; 
     3380        return $wp_query->is_main_query(); 
     3381} 
     3382 No newline at end of file 
  • wp-includes/query.php

     
    712712        return $wp_query->is_404(); 
    713713} 
    714714 
    715 /** 
    716  * Is the query the main query? 
    717  * 
    718  * @since 3.3.0 
    719  * 
    720  * @return bool 
    721  */ 
    722 function is_main_query() { 
    723         global $wp_query; 
    724         return $wp_query->is_main_query(); 
    725 } 
    726  
    727715/* 
    728716 * The Loop. Post loop control. 
    729717 */