Defining $post as a global variable (#4)
This commit is contained in:
parent
a8ebfff2f1
commit
eccd03b749
|
@ -375,7 +375,8 @@ if( !class_exists('ExToC') ) {
|
||||||
|
|
||||||
// we didn't find any markup...
|
// we didn't find any markup...
|
||||||
if( $pos === false ) {
|
if( $pos === false ) {
|
||||||
// There was no markup, so insert at top or return original if this type does not need a ToC
|
global $post;
|
||||||
|
// There was no markup, so insert at top or return original if this type does not need a ToC
|
||||||
if( !in_array(get_post_type($post), $this->options['auto_insert_post_types']) )
|
if( !in_array(get_post_type($post), $this->options['auto_insert_post_types']) )
|
||||||
return $content;
|
return $content;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue