We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a3cc5 commit 3e9a06dCopy full SHA for 3e9a06d
feed-json-functions.php
@@ -51,9 +51,7 @@ function get_link_from_json_feed( $link ) {
51
52
function get_json_feed_next_url() {
53
global $paged, $wp_query;
54
- if ( ! isset($max_page) || ! $max_page ) {
55
- $max_page = $wp_query->max_num_pages;
56
- }
+ $max_page = $wp_query->max_num_pages;
57
58
$nextpage = ( ! $paged ) ? 2 : (int) $paged + 1;
59
0 commit comments