Changeset 40337 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 03/27/2017 09:23:05 AM (7 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40325 r40337 1289 1289 if ( 'inherit' === $post->post_status && $post->post_parent > 0 ) { 1290 1290 $parent = get_post( $post->post_parent ); 1291 return $this->check_read_permission( $parent ); 1291 if ( $parent ) { 1292 return $this->check_read_permission( $parent ); 1293 } 1292 1294 } 1293 1295
Note: See TracChangeset
for help on using the changeset viewer.