Changeset 49622 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 11/17/2020 03:27:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r49563 r49622 165 165 $permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename ); 166 166 167 if ( $permalink && ! in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ), true ) ) { 167 if ( 168 $permalink && 169 ! in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future', 'trash' ), true ) 170 ) { 168 171 169 172 $category = ''; … … 419 422 if ( $parent && ! in_array( $parent->post_type, get_post_types(), true ) ) { 420 423 $parent = false; 421 }422 423 if ( $parent ) {424 $parent_status_obj = get_post_status_object( get_post_status( $post->post_parent ) );425 if (426 ! is_post_type_viewable( get_post_type( $post->post_parent ) ) ||427 $parent_status_obj->internal ||428 $parent_status_obj->protected429 ) {430 $parent = false;431 }432 424 } 433 425
Note: See TracChangeset
for help on using the changeset viewer.