Making WordPress.org


Ignore:
Timestamp:
12/20/2018 01:26:07 AM (8 years ago)
Author:
dd32
Message:

Handbooks: Don't override the embed.php template, and don't prefix the TOC to the embed previews.

Fixes #4013.

File:
1 edited

Legend:

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

    r6322 r7994  
    4242                $this->post_types = array_map( array( $this, 'append_suffix' ), $this->post_types );
    4343
    44                 if ( is_singular( $this->post_types ) )
     44                if ( is_singular( $this->post_types ) && ! is_embed() ) {
    4545                        add_filter( 'the_content', array( $this, 'add_toc' ) );
     46                }
    4647        }
    4748
Note: See TracChangeset for help on using the changeset viewer.