Skip to content

Commit

Permalink
Fixes issue with plugin not detecting presence of WordPress Popular P…
Browse files Browse the repository at this point in the history
…osts
  • Loading branch information
cabrerahector committed Aug 13, 2022
1 parent 03a6a4a commit c273e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress-popular-posts-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
function init() {

if ( class_exists('WPP_Query', false) ) {
if ( class_exists('WordPressPopularPosts\WordPressPopularPosts', false) ) {
add_action( 'init', __NAMESPACE__ . '\register_feed' );
}
else {
Expand Down

0 comments on commit c273e3b

Please sign in to comment.