Changeset 3485
- Timestamp:
- 06/19/2016 10:02:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php
r2565 r3485 50 50 // Exclude root handbook page from the table of contents. 51 51 $page = get_page_by_path( $this->append_suffix( $post->post_type ), OBJECT, $post->post_type ); 52 if ( ! $page ) { 53 $slug = substr( $post->post_type, 0, -9 ); 54 $page = get_page_by_path( $slug, OBJECT, $post->post_type ); 55 } 52 56 if ( $page ) { 53 57 $args['exclude'] = $page->ID;
Note: See TracChangeset
for help on using the changeset viewer.