Make WordPress Core

Ticket #63067: blocks-diff.patch

File blocks-diff.patch, 529 bytes (added by vedantgandhi28, 9 months ago)

This is the code change that will be introduced.

  • wp-includes/

    old new  
    26422642                if ( ! empty( $block->context['query']['taxQuery'] ) ) {
    26432643                        $tax_query = array();
    26442644                        foreach ( $block->context['query']['taxQuery'] as $taxonomy => $terms ) {
    2645                                 if ( is_taxonomy_viewable( $taxonomy ) && ! empty( $terms ) ) {
     2645                                if ( ! empty( $terms ) ) {
    26462646                                        $tax_query[] = array(
    26472647                                                'taxonomy'         => $taxonomy,
    26482648                                                'terms'            => array_filter( array_map( 'intval', $terms ) ),