mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Revert [38859] due to an incomplete implementation.
See https://core.trac.wordpress.org/ticket/37128#comment:27. See #37128. git-svn-id: https://develop.svn.wordpress.org/trunk@38863 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -169,9 +169,7 @@ function get_permalink( $post = 0, $leavename = false ) {
|
||||
if ( strpos($permalink, '%category%') !== false ) {
|
||||
$cats = get_the_category($post->ID);
|
||||
if ( $cats ) {
|
||||
$cats = wp_list_sort( $cats, array(
|
||||
'term_id' => 'ASC',
|
||||
) );
|
||||
usort($cats, '_usort_terms_by_ID'); // order by ID
|
||||
|
||||
/**
|
||||
* Filters the category that gets used in the %category% permalink token.
|
||||
|
||||
Reference in New Issue
Block a user