Ticket #39881: 39881.patch
| File 39881.patch, 647 bytes (added by , 9 years ago) |
|---|
-
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
1289 1289 // Can we read the parent if we're inheriting? 1290 1290 if ( 'inherit' === $post->post_status && $post->post_parent > 0 ) { 1291 1291 $parent = get_post( $post->post_parent ); 1292 return $this->check_read_permission( $parent ); 1292 if ( $parent ) { 1293 return $this->check_read_permission( $parent ); 1294 } 1293 1295 } 1294 1296 1295 1297 /*