Skip to content

Commit

Permalink
Update content.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Oct 24, 2023
1 parent 301531a commit 2a25837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function crp_content_filter( $content ) {
}

// Check if this is the last call of the_content.
if ( doing_filter( 'the_content' ) && (int) $wp_filters['the_content'] !== $filter_calls ) {
if ( doing_filter( 'the_content' ) && isset( $wp_filters['the_content'] ) && (int) $wp_filters['the_content'] !== $filter_calls ) {
return $content;
}

Expand Down

0 comments on commit 2a25837

Please sign in to comment.