Changeset 49067
- Timestamp:
- 09/28/2020 11:52:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r49066 r49067 3914 3914 if ( 'page' === $post->post_type && get_option( 'page_on_front' ) == $post->ID && 'page' === get_option( 'show_on_front' ) ) { 3915 3915 $shortlink = home_url( '/' ); 3916 } elseif ( $post_type ->public ) {3916 } elseif ( $post_type && $post_type->public ) { 3917 3917 $shortlink = home_url( '?p=' . $post_id ); 3918 3918 }
Note: See TracChangeset
for help on using the changeset viewer.