Make WordPress Core

Ticket #33726: 33726.diff

File 33726.diff, 527 bytes (added by ixkaito, 6 years ago)
  • wp-includes/taxonomy-functions.php

     
    11321132                $orderby = 'tt.description';
    11331133        } elseif ( 'none' == $_orderby ) {
    11341134                $orderby = '';
    1135         } elseif ( empty($_orderby) || 'id' == $_orderby ) {
     1135        } elseif ( empty($_orderby) || 'id' == $_orderby || 'term_id' == $_orderby ) {
    11361136                $orderby = 't.term_id';
    11371137        } else {
    11381138                $orderby = 't.name';