Changeset 10763 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/template-tags.php
- Timestamp:
- 03/04/2021 11:40:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/template-tags.php
r10000 r10763 83 83 * @return bool True if the current page is the landing page for a handbook, false otherwise. 84 84 */ 85 function wporg_is_handbook_landing_page() { 86 return $GLOBALS['wp_query']->is_handbook_root; 85 function wporg_is_handbook_landing_page() { 86 return ( 87 $GLOBALS['wp_query']->is_handbook_root 88 || 89 ( 90 ! empty( $GLOBALS['wp_query']->query_vars['handbook'] ) 91 && 92 $GLOBALS['wp_query']->found_posts === 1 93 && 94 ! empty( $GLOBALS['wp_query']->query_vars['page_id'] ) 95 ) 96 ); 87 97 } 88 98
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)