Making WordPress.org

Changeset 5912


Ignore:
Timestamp:
09/12/2017 04:39:57 PM (8 years ago)
Author:
coffee2code
Message:

Handbook plugin: Update wporg_is_handbook_landing_page() to use proper method for noting is_handbook_root.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/template-tags.php

    r3712 r5912  
    4646        }
    4747
    48         $handbook_query = is_post_type_archive( $post_type ) || get_query_var( 'is_handbook_root' );
     48        $handbook_query = is_post_type_archive( $post_type ) || wporg_is_handbook_landing_page();
    4949
    5050        if ( ! $handbook_query && is_singular() ) {
     
    7979 */
    8080 function wporg_is_handbook_landing_page() {
    81      return get_query_var( 'is_handbook_root' );
     81     return $GLOBALS['wp_query']->is_handbook_root;
    8282 }
    8383
Note: See TracChangeset for help on using the changeset viewer.