Changeset 29765 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/24/2014 09:29:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r29375 r29765 258 258 $post_type = get_post_type_object($post->post_type); 259 259 260 if ( $post_type->hierarchical ) { 261 $slug = get_page_uri( $id ); 262 } 263 260 264 if ( !empty($post_link) && ( !$draft_or_pending || $sample ) ) { 261 265 if ( ! $leavename ) { 262 if ( $post_type->hierarchical )263 $slug = get_page_uri($id);264 266 $post_link = str_replace("%$post->post_type%", $slug, $post_link); 265 267 }
Note: See TracChangeset
for help on using the changeset viewer.