WordPress.org

Make WordPress Core

Ticket #18754: 18754.patch

File 18754.patch, 462 bytes (added by johnbillion, 3 years ago)
  • wp-includes/taxonomy.php

     
    12331233        else 
    12341234                $orderby = 't.name'; 
    12351235 
    1236         $orderby = apply_filters( 'get_terms_orderby', $orderby, $args ); 
     1236        $orderby = apply_filters( 'get_terms_orderby', $orderby, $args, $taxonomies ); 
    12371237 
    12381238        if ( !empty($orderby) ) 
    12391239                $orderby = "ORDER BY $orderby";