Changeset 49924
- Timestamp:
- 01/03/2021 05:54:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r49622 r49924 149 149 $post_type_obj = get_post_type_object( $redirect_post->post_type ); 150 150 151 if ( $post_type_obj ->public && 'auto-draft' !== $redirect_post->post_status ) {151 if ( $post_type_obj && $post_type_obj->public && 'auto-draft' !== $redirect_post->post_status ) { 152 152 $redirect_url = get_permalink( $redirect_post ); 153 153
Note: See TracChangeset
for help on using the changeset viewer.