WordPress.org

Make WordPress Core

Ticket #47719: 47719.2.diff

File 47719.2.diff, 642 bytes (added by Hareesh Pillai, 13 months ago)

Patch refreshed against trunk

  • src/wp-includes/class-wp-term-query.php

     
    422422                $exclude_tree = $args['exclude_tree'];
    423423                $include      = $args['include'];
    424424
    425                 $inclusions = '';
    426425                if ( ! empty( $include ) ) {
    427426                        $exclude      = '';
    428427                        $exclude_tree = '';
    429428                        $inclusions   = implode( ',', wp_parse_id_list( $include ) );
    430                 }
    431 
    432                 if ( ! empty( $inclusions ) ) {
    433429                        $this->sql_clauses['where']['inclusions'] = 't.term_id IN ( ' . $inclusions . ' )';
    434430                }
    435431