Changeset 5912
- Timestamp:
- 09/12/2017 04:39:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/template-tags.php
r3712 r5912 46 46 } 47 47 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(); 49 49 50 50 if ( ! $handbook_query && is_singular() ) { … … 79 79 */ 80 80 function wporg_is_handbook_landing_page() { 81 return get_query_var( 'is_handbook_root' );81 return $GLOBALS['wp_query']->is_handbook_root; 82 82 } 83 83
Note: See TracChangeset
for help on using the changeset viewer.