Skip to content

Commit

Permalink
Merge pull request #113 from voceconnect/term_page_arg_bug_112
Browse files Browse the repository at this point in the history
Fixing var name
  • Loading branch information
kevinlangleyjr committed Nov 11, 2014
2 parents dd0c73e + 7bd6119 commit e50bcaf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
tests/wp-tests-config.php
vendor/
DOCS.md
node_modules/
4 changes: 2 additions & 2 deletions api/v1/models/Terms.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class Terms {
public function find( $taxonomy, $args = array( ), &$found = null ) {

//setup paging
if ( empty( $request_args['per_page'] ) || absint($request_args['per_page']) > \Voce\Thermal\v1\MAX_TERMS_PER_PAGE ) {
if ( empty( $args['per_page'] ) || absint($args['per_page']) > \Voce\Thermal\v1\MAX_TERMS_PER_PAGE ) {
$number = \Voce\Thermal\v1\MAX_TERMS_PER_PAGE;
} else {
$number = absint( $request_args['per_page'] );
$number = absint( $args['per_page'] );
}
if ( isset( $args['offset'] ) ) {
$offset = $args['offset'];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "thermal-api",
"description": "Thermal is the WordPress plugin that gives you the power of WP_Query in a RESTful API.",
"version": "0.13.2",
"version": "0.13.3",
"repository": {
"type": "git",
"url": "[email protected]:voceconnect/thermal-api.git"
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: voceplatforms
Tags: thermal, JSON, API
Requires at least: 3.6
Tested up to: 3.9.2
Stable tag: 0.13.2
Stable tag: 0.13.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -29,6 +29,9 @@ Thermal is the WordPress plugin that gives you the power of WP_Query in a RESTfu
Yes. https://github.com/voceconnect/thermal-api

== Changelog ==
= 0.13.3 =
* Fixing bug with terms per_page arg

= 0.13.2 =
* Fixing issue with post galleries and adding tests to prevent issues with them again

Expand Down
2 changes: 1 addition & 1 deletion thermal-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
Plugin Name: Thermal API
Version: 0.13.2
Version: 0.13.3
Plugin URI: http://thermal-api.com/
Description: The power of WP_Query in a RESTful API.
Author: Voce Platforms
Expand Down

0 comments on commit e50bcaf

Please sign in to comment.