Changeset 17061 for trunk/wp-includes/link-template.php
- Timestamp:
- 12/19/2010 02:42:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r16994 r17061 272 272 $post = &get_post($id); 273 273 274 $draft_or_pending = in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) ); 275 274 276 $link = $wp_rewrite->get_page_permastruct(); 275 276 if ( '' != $link && ( ( isset($post->post_status) && 'draft' != $post->post_status && 'pending' != $post->post_status ) || $sample ) ) {277 if ( ! $leavename ) 277 278 if ( !empty($link) && ( ( isset($post->post_status) && !$draft_or_pending ) || $sample ) ) { 279 if ( ! $leavename ) { 278 280 $link = str_replace('%pagename%', get_page_uri($id), $link); 281 } 282 279 283 $link = home_url($link); 280 284 $link = user_trailingslashit($link, 'page');
Note: See TracChangeset
for help on using the changeset viewer.