Changes in sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php [8899:10768]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
r8899 r10768 40 40 41 41 function load_filters() { 42 $this->post_types = array_map( array( $this, 'append_suffix' ), $this->post_types );43 44 42 if ( is_singular( $this->post_types ) && ! is_embed() ) { 45 43 add_filter( 'the_content', array( $this, 'add_toc' ) ); 46 44 } 47 }48 49 function append_suffix( $t ) {50 if ( in_array( $t, array( 'handbook', 'page' ) ) ) {51 return $t;52 }53 54 return $t . '-handbook';55 45 } 56 46
Note: See TracChangeset
for help on using the changeset viewer.