Making WordPress.org

Changeset 11


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

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

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc
Files:
2 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
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php

    r10 r11  
    4343
    4444class WPorg_Handbook_Pages_Widget extends WP_Widget_Pages {
     45        protected $post_type = 'page';
     46
    4547        function __construct() {
    4648                $widget_ops = array('classname' => 'widget_wporg_handbook_pages', 'description' => __( 'Your site&#8217;s Handbook Pages') );
Note: See TracChangeset for help on using the changeset viewer.