Changeset 7994
- Timestamp:
- 12/20/2018 01:26:07 AM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php
r7934 r7994 309 309 global $wp_query; 310 310 311 // Don't override Embeds 312 if ( is_embed() ) { 313 return $template; 314 } 315 311 316 $handbook_templates = array(); 312 317 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
r6322 r7994 42 42 $this->post_types = array_map( array( $this, 'append_suffix' ), $this->post_types ); 43 43 44 if ( is_singular( $this->post_types ) )44 if ( is_singular( $this->post_types ) && ! is_embed() ) { 45 45 add_filter( 'the_content', array( $this, 'add_toc' ) ); 46 } 46 47 } 47 48
Note: See TracChangeset
for help on using the changeset viewer.