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:
Dominik Schilling (ocean90)
2016-10-21 17:00:29 +00:00
parent 2d7c2823b6
commit ef43d7b0fa
10 changed files with 143 additions and 735 deletions
+1 -3
View File
@@ -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.