WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/23/2013 08:52:53 PM (8 years ago)
Author:
nacin
Message:

Handbook plugin: Ensure we are passing the right post type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r10 r11  
    3232            $pages_header = 'h3';
    3333
    34         if ( $pages = wp_list_pages( array( 'child_of' => get_the_ID(), 'echo' => false, 'title_li' => false ) ) )
     34        if ( $pages = wp_list_pages( array( 'child_of' => get_the_ID(), 'echo' => false, 'title_li' => false, 'post_type' => self::$post_type ) ) )
    3535            $toc .= "<$pages_header>Pages</$pages_header><ul class=\"items\">$pages</ul>";
    3636
Note: See TracChangeset for help on using the changeset viewer.