WordPress.org

Make WordPress Core

Ticket #27557: 27557.patch

File 27557.patch, 547 bytes (added by clifgriffin, 6 years ago)
  • wp-includes/taxonomy.php

    diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
    index 410e762..2dfa45b 100644
    class WP_Tax_Query { 
    726726
    727727                        extract( $query );
    728728
     729      $operator = strtoupper($operator);
     730
    729731                        if ( 'IN' == $operator ) {
    730732
    731733                                if ( empty( $terms ) ) {
    function wp_check_term_hierarchy_for_loops( $parent, $term_id, $taxonomy ) { 
    34053407                wp_update_term( $loop_member, $taxonomy, array( 'parent' => 0 ) );
    34063408
    34073409        return $parent;
    3408 }
    3409  No newline at end of file
     3410}