Changeset 30260 for branches/4.0/src/wp-includes/link-template.php
- Timestamp:
- 11/06/2014 08:21:03 AM (10 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-includes/link-template.php
r29375 r30260 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.