Changeset 27802
- Timestamp:
- 03/28/2014 02:58:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r27754 r27802 2789 2789 if ( ! empty( $post_id ) ) { 2790 2790 $post_type = get_post_type_object( $post->post_type ); 2791 if ( $post_type->public ) 2792 $shortlink = home_url('?p=' . $post_id); 2791 2792 if ( 'page' === $post->post_type && $post->ID == get_option( 'page_on_front' ) && 'page' == get_option( 'show_on_front' ) ) { 2793 $shortlink = home_url( '/' ); 2794 } elseif ( $post_type->public ) { 2795 $shortlink = home_url( '?p=' . $post_id ); 2796 } 2793 2797 } 2794 2798
Note: See TracChangeset
for help on using the changeset viewer.