Ticket #5414: 5414.patch
File 5414.patch, 969 bytes (added by , 13 years ago) |
---|
-
wp-includes/link-template.php
73 73 $unixtime = strtotime($post->post_date); 74 74 75 75 $category = ''; 76 if ( strpos($permalink, '%category%') !== false) {76 if ( strpos($permalink, '%category%') !== false ) { 77 77 $cats = get_the_category($post->ID); 78 78 if ( $cats ) 79 79 usort($cats, '_usort_terms_by_ID'); // order by ID … … 82 82 $category = get_category_parents($parent, FALSE, '/', TRUE) . $category; 83 83 } 84 84 85 $authordata = get_userdata($post->post_author); 86 $author = $authordata->user_nicename; 85 $author = ''; 86 if ( strpos($permalink, '%author%') !== false ) { 87 $authordata = get_userdata($post->post_author); 88 $author = $authordata->user_nicename; 89 } 90 87 91 $date = explode(" ",date('Y m d H i s', $unixtime)); 88 92 $rewritereplace = 89 93 array(