WordPress.org

Make WordPress Core

Ticket #15250: 15250.2.patch

File 15250.2.patch, 785 bytes (added by sc0ttkclark, 4 years ago)

Updated patch for latest SVN Revision (16692)

  • wp-includes/taxonomy.php

     
    520520 * @param string $primary_id_column 
    521521 * @return array 
    522522 */ 
    523 function get_tax_sql( $tax_query, $primary_table, $primary_id_column ) { 
     523function get_tax_sql( $tax_query, $primary_table, $primary_id_column, $context = null ) { 
    524524        global $wpdb; 
    525525 
    526526        $join = ''; 
     
    616616        else 
    617617                $where = ''; 
    618618 
    619         return compact( 'join', 'where' ); 
     619        return apply_filters_ref_array( 'get_tax_sql', array( compact( 'join', 'where' ), $tax_query, $primary_table, $primary_id_column, $context ) ); 
    620620} 
    621621 
    622622function _transform_terms( &$terms, $taxonomies, $field, $resulting_field ) {