- Timestamp:
- 03/20/2017 04:29:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40122 r40306 1295 1295 if ( 'inherit' === $post->post_status && $post->post_parent > 0 ) { 1296 1296 $parent = get_post( $post->post_parent ); 1297 return $this->check_read_permission( $parent ); 1297 if ( $parent ) { 1298 return $this->check_read_permission( $parent ); 1299 } 1298 1300 } 1299 1301
Note: See TracChangeset
for help on using the changeset viewer.