Skip to content

Commit 3e9a06d

Browse files
committed
Always use the query
1 parent 44a3cc5 commit 3e9a06d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

feed-json-functions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ function get_link_from_json_feed( $link ) {
5151

5252
function get_json_feed_next_url() {
5353
global $paged, $wp_query;
54-
if ( ! isset($max_page) || ! $max_page ) {
55-
$max_page = $wp_query->max_num_pages;
56-
}
54+
$max_page = $wp_query->max_num_pages;
5755

5856
$nextpage = ( ! $paged ) ? 2 : (int) $paged + 1;
5957

0 commit comments

Comments
 (0)