Making WordPress.org


Ignore:
Timestamp:
10/27/2014 09:08:31 AM (10 years ago)
Author:
coffee2code
Message:

Handbook plugin: remove 'Pages' listing from above content for handbook parent pages. Fixes #464

File:
1 edited

Legend:

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

    r707 r939  
    3838            $content = $this->add_ids_and_jumpto_links( "h$i", $content );
    3939
    40         if ( $items )
    41             $contents_header = $pages_header = 'h' . $items[0][2]; // Duplicate the first <h#> tag in the document.
    42         else
    43             $pages_header = 'h3';
    44 
    45         if ( $pages = wp_list_pages( array( 'child_of' => get_the_ID(), 'echo' => false, 'title_li' => false, 'post_type' => get_post_type() ) ) )
    46             $toc .= "<$pages_header>Pages</$pages_header><ul class=\"items\">$pages</ul>";
    47 
    4840        if ( $items ) {
     41            $contents_header = 'h' . $items[0][2]; // Duplicate the first <h#> tag in the document.
    4942            $toc .= $this->styles;
    5043            $toc .= '<div class="table-of-contents">';
Note: See TracChangeset for help on using the changeset viewer.