Skip to content

Commit 4df4e44

Browse files
authored
Merge pull request #68 from dshanske/max_pages
Max pages
2 parents 44a3cc5 + 2435991 commit 4df4e44

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ This is a syndication format, which means it only represents your posts and comm
3939

4040
## Changelog
4141

42+
### 1.4.4
43+
44+
* Fix declaration error
45+
4246
### 1.4.3
4347

4448
* Add next_url

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

jsonfeed-wp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: JSON Feed
44
Plugin URI: https://github.com/manton/jsonfeed-wp/
55
Description: Adds a feed of recent posts in JSON Feed format.
6-
Version: 1.4.3
6+
Version: 1.4.4
77
Author: Manton Reece and Daniel Jalkut
88
Text Domain: jsonfeed
99
License: GPL2.0+

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: mantonr, redsweater, dshanske
33
Tags: jsonfeed, json, feed, feeds
44
Requires at least: 4.9
5-
Tested up to: 6.0
5+
Tested up to: 6.2
66
Requires PHP: 5.4
7-
Stable tag: 1.4.3
7+
Stable tag: 1.4.4
88
License: GPL-2.0+
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -47,6 +47,9 @@ This is a syndication format, which means it only represents your posts and comm
4747

4848
== Changelog ==
4949

50+
= 1.4.4 =
51+
* Fix declaration error
52+
5053
= 1.4.3 =
5154
* Add next_url
5255
* Add CORS header

0 commit comments

Comments
 (0)