Version Description
This is a bug fix release for JSONP support. Thanks to Ben Wilson for reporting it!
Download this release
Release Info
Developer | dphiffer |
Plugin | JSON API |
Version | 0.8.1 |
Comparing to | |
See all releases |
Code changes from version 0.8 to 0.8.1
- json-api.php +1 -1
- readme.txt +7 -1
- singletons/response.php +1 -1
json-api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: JSON API
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/json-api/
|
5 |
Description: A RESTful API for WordPress
|
6 |
-
Version: 0.8
|
7 |
Author: Dan Phiffer
|
8 |
Author URI: http://phiffer.org/
|
9 |
*/
|
3 |
Plugin Name: JSON API
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/json-api/
|
5 |
Description: A RESTful API for WordPress
|
6 |
+
Version: 0.8.1
|
7 |
Author: Dan Phiffer
|
8 |
Author URI: http://phiffer.org/
|
9 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: dphiffer
|
|
3 |
Tags: json, api, ajax, cms, admin, integration, moma
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 2.9
|
6 |
-
Stable tag: 0.8
|
7 |
|
8 |
A RESTful API for WordPress
|
9 |
|
@@ -572,6 +572,9 @@ Submits a comment to a WordPress post.
|
|
572 |
|
573 |
== Changelog ==
|
574 |
|
|
|
|
|
|
|
575 |
= 0.8 (2010-01-18): =
|
576 |
* Added an attachment model and instance variable for post objects
|
577 |
|
@@ -600,3 +603,6 @@ Submits a comment to a WordPress post.
|
|
600 |
|
601 |
= 0.8 =
|
602 |
Added what may be the last introspection feature: post attachments. You can now see images and other media that have been added to posts.
|
|
|
|
|
|
3 |
Tags: json, api, ajax, cms, admin, integration, moma
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 2.9
|
6 |
+
Stable tag: 0.8.1
|
7 |
|
8 |
A RESTful API for WordPress
|
9 |
|
572 |
|
573 |
== Changelog ==
|
574 |
|
575 |
+
= 0.8 (2010-01-27): =
|
576 |
+
* Fixed a bug that was making JSONP support non-functional
|
577 |
+
|
578 |
= 0.8 (2010-01-18): =
|
579 |
* Added an attachment model and instance variable for post objects
|
580 |
|
603 |
|
604 |
= 0.8 =
|
605 |
Added what may be the last introspection feature: post attachments. You can now see images and other media that have been added to posts.
|
606 |
+
|
607 |
+
= 0.8.1 =
|
608 |
+
This is a bug fix release for JSONP support. Thanks to Ben Wilson for reporting it!
|
singletons/response.php
CHANGED
@@ -90,7 +90,7 @@ class JSON_API_Response {
|
|
90 |
wp_redirect($url);
|
91 |
} else if ($json_api->query->callback) {
|
92 |
// Run a JSONP-style callback with the result
|
93 |
-
$this->callback($
|
94 |
} else {
|
95 |
// Output the result in JSON format
|
96 |
$this->output($result);
|
90 |
wp_redirect($url);
|
91 |
} else if ($json_api->query->callback) {
|
92 |
// Run a JSONP-style callback with the result
|
93 |
+
$this->callback($json_api->query->callback, $result);
|
94 |
} else {
|
95 |
// Output the result in JSON format
|
96 |
$this->output($result);
|