Making WordPress.org


Ignore:
Timestamp:
06/19/2018 09:44:33 AM (7 years ago)
Author:
obenland
Message:

Developer: Use query_vars correctly.

Props grapplerulrich, johnbillion, SergeyBiryukov.
Fixes #2882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php

    r5598 r7319  
    9797 */
    9898function wporg_filter_archive_excerpt( $excerpt ) {
    99     if ( ! is_single() && ! get_query_var( 'is_handbook' ) && 'command' !== get_query_var( 'post_type' ) ) {
     99    if ( ! is_single() && ! $GLOBALS['wp_query']->is_handbook && 'command' !== get_query_var( 'post_type' ) ) {
    100100
    101101        $post_id = get_the_ID();
     
    201201}
    202202add_filter( 'loop_pagination', 'wporg_loop_pagination' );
    203 
Note: See TracChangeset for help on using the changeset viewer.