Skip to content

Commit

Permalink
Fetch posts with \WordPressPopularPosts\Query
Browse files Browse the repository at this point in the history
The WPP_Query class was deprecated with WordPress Popular Posts 5.0.0. We should be using \WordPressPopularPosts\Query instead.
  • Loading branch information
cabrerahector authored Dec 7, 2019
1 parent 279df0a commit 1f9a0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) :
Expand Down

0 comments on commit 1f9a0a3

Please sign in to comment.