Version Description
Download this release
Release Info
Developer | danielbachhuber |
Plugin | WordPress REST API (Version 2) |
Version | 2.0-beta9.1 |
Comparing to | |
See all releases |
Code changes from version 2.0-beta9 to 2.0-beta9.1
- CHANGELOG.md +6 -0
- lib/endpoints/class-wp-rest-posts-controller.php +1 -4
- plugin.php +1 -1
- readme.txt +7 -1
CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
## 2.0 Beta 9.0
|
4 |
|
5 |
- BREAKING CHANGE: Move tags and categories to top-level endpoints.
|
1 |
# Changelog
|
2 |
|
3 |
+
## 2.0 Beta 9.1
|
4 |
+
|
5 |
+
- Ensure media of private posts are private too.
|
6 |
+
|
7 |
+
Reported by @danielbachhuber on 2016-01-08.
|
8 |
+
|
9 |
## 2.0 Beta 9.0
|
10 |
|
11 |
- BREAKING CHANGE: Move tags and categories to top-level endpoints.
|
lib/endpoints/class-wp-rest-posts-controller.php
CHANGED
@@ -946,10 +946,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
|
946 |
// Can we read the parent if we're inheriting?
|
947 |
if ( 'inherit' === $post->post_status && $post->post_parent > 0 ) {
|
948 |
$parent = get_post( $post->post_parent );
|
949 |
-
|
950 |
-
if ( $this->check_read_permission( $parent ) ) {
|
951 |
-
return true;
|
952 |
-
}
|
953 |
}
|
954 |
|
955 |
// If we don't have a parent, but the status is set to inherit, assume
|
946 |
// Can we read the parent if we're inheriting?
|
947 |
if ( 'inherit' === $post->post_status && $post->post_parent > 0 ) {
|
948 |
$parent = get_post( $post->post_parent );
|
949 |
+
return $this->check_read_permission( $parent );
|
|
|
|
|
|
|
950 |
}
|
951 |
|
952 |
// If we don't have a parent, but the status is set to inherit, assume
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: JSON-based REST API for WordPress, developed as part of GSoC 2013.
|
5 |
* Author: WP REST API Team
|
6 |
* Author URI: http://wp-api.org
|
7 |
-
* Version: 2.0-beta9
|
8 |
* Plugin URI: https://github.com/WP-API/WP-API
|
9 |
* License: GPL2+
|
10 |
*/
|
4 |
* Description: JSON-based REST API for WordPress, developed as part of GSoC 2013.
|
5 |
* Author: WP REST API Team
|
6 |
* Author URI: http://wp-api.org
|
7 |
+
* Version: 2.0-beta9.1
|
8 |
* Plugin URI: https://github.com/WP-API/WP-API
|
9 |
* License: GPL2+
|
10 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: rmccue, rachelbaker, danielbachhuber, joehoyle
|
|
3 |
Tags: json, rest, api, rest-api
|
4 |
Requires at least: 4.3
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 2.0-beta9
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -36,6 +36,12 @@ For full-flavoured API support, you'll need to be using pretty permalinks to use
|
|
36 |
|
37 |
== Changelog ==
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
= 2.0 Beta 9.0 =
|
40 |
|
41 |
* BREAKING CHANGE: Move tags and categories to top-level endpoints.
|
3 |
Tags: json, rest, api, rest-api
|
4 |
Requires at least: 4.3
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 2.0-beta9.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
36 |
|
37 |
== Changelog ==
|
38 |
|
39 |
+
= 2.0 Beta 9.1 =
|
40 |
+
|
41 |
+
* Ensure media of private posts are private too.
|
42 |
+
|
43 |
+
Reported by @danielbachhuber on 2016-01-08.
|
44 |
+
|
45 |
= 2.0 Beta 9.0 =
|
46 |
|
47 |
* BREAKING CHANGE: Move tags and categories to top-level endpoints.
|