Changeset 939 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
- Timestamp:
- 10/27/2014 09:08:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
r707 r939 38 38 $content = $this->add_ids_and_jumpto_links( "h$i", $content ); 39 39 40 if ( $items )41 $contents_header = $pages_header = 'h' . $items[0][2]; // Duplicate the first <h#> tag in the document.42 else43 $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 48 40 if ( $items ) { 41 $contents_header = 'h' . $items[0][2]; // Duplicate the first <h#> tag in the document. 49 42 $toc .= $this->styles; 50 43 $toc .= '<div class="table-of-contents">';
Note: See TracChangeset
for help on using the changeset viewer.