Skip to content

Commit

Permalink
Merge pull request #68 from dshanske/max_pages
Browse files Browse the repository at this point in the history
Max pages
  • Loading branch information
dshanske authored Jun 4, 2023
2 parents 44a3cc5 + 2435991 commit 4df4e44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ This is a syndication format, which means it only represents your posts and comm

## Changelog

### 1.4.4

* Fix declaration error

### 1.4.3

* Add next_url
Expand Down
4 changes: 1 addition & 3 deletions feed-json-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ function get_link_from_json_feed( $link ) {

function get_json_feed_next_url() {
global $paged, $wp_query;
if ( ! isset($max_page) || ! $max_page ) {
$max_page = $wp_query->max_num_pages;
}
$max_page = $wp_query->max_num_pages;

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

Expand Down
2 changes: 1 addition & 1 deletion jsonfeed-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: JSON Feed
Plugin URI: https://github.com/manton/jsonfeed-wp/
Description: Adds a feed of recent posts in JSON Feed format.
Version: 1.4.3
Version: 1.4.4
Author: Manton Reece and Daniel Jalkut
Text Domain: jsonfeed
License: GPL2.0+
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: mantonr, redsweater, dshanske
Tags: jsonfeed, json, feed, feeds
Requires at least: 4.9
Tested up to: 6.0
Tested up to: 6.2
Requires PHP: 5.4
Stable tag: 1.4.3
Stable tag: 1.4.4
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.4.4 =
* Fix declaration error

= 1.4.3 =
* Add next_url
* Add CORS header
Expand Down

0 comments on commit 4df4e44

Please sign in to comment.