Ticket #21970: 21970.4.diff
| File 21970.4.diff, 1.2 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/class-wp.php
215 215 } 216 216 217 217 $post_status_obj = get_post_status_object( $page->post_status ); 218 if ( ! $post_status_obj->public && ! $post_status_obj->protected && ! $post_status_obj->private ) { 218 if ( ! $post_status_obj->public && ! $post_status_obj->protected 219 && ! $post_status_obj->private && $post_status_obj->exclude_from_search ) { 219 220 continue; 220 221 } 221 222 } -
src/wp-includes/rewrite-functions.php
403 403 } 404 404 405 405 $post_status_obj = get_post_status_object( $page->post_status ); 406 if ( ! $post_status_obj->public && ! $post_status_obj->protected && ! $post_status_obj->private ) { 406 if ( ! $post_status_obj->public && ! $post_status_obj->protected 407 && ! $post_status_obj->private && $post_status_obj->exclude_from_search ) { 407 408 continue; 408 409 } 409 410 }