From 1f9a0a35199b388fc57ac8cea0454a100a070be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Cabrera?= Date: Sat, 7 Dec 2019 13:41:00 -0400 Subject: [PATCH] Fetch posts with \WordPressPopularPosts\Query The WPP_Query class was deprecated with WordPress Popular Posts 5.0.0. We should be using \WordPressPopularPosts\Query instead. --- feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed.php b/feed.php index 85f208f..c571ee9 100644 --- a/feed.php +++ b/feed.php @@ -91,7 +91,7 @@ 'limit' => get_option( 'posts_per_rss' ) ); $args = apply_filters( 'popular_posts_feed_args', $args ); - $popular_posts = new WPP_Query( $args ); + $popular_posts = new \WordPressPopularPosts\Query( $args ); if ( $popular_posts->get_posts() ) : foreach( $popular_posts->get_posts() as $popular_post ) :