IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
|
a
|
b
|
|
| 1552 | 1552 | */ |
| 1553 | 1553 | $defaults = apply_filters( 'term_exists_default_query_args', $defaults, $term, $taxonomy, $parent ); |
| 1554 | 1554 | |
| | 1555 | if ( ! empty( $taxonomy ) && is_numeric( $parent ) ) { |
| | 1556 | $defaults['parent'] = (int) $parent; |
| | 1557 | } |
| | 1558 | |
| 1555 | 1559 | if ( is_int( $term ) ) { |
| 1556 | 1560 | if ( 0 === $term ) { |
| 1557 | 1561 | return 0; |
| … |
… |
|
| 1564 | 1568 | return null; |
| 1565 | 1569 | } |
| 1566 | 1570 | |
| 1567 | | if ( ! empty( $taxonomy ) && is_numeric( $parent ) ) { |
| 1568 | | $defaults['parent'] = (int) $parent; |
| 1569 | | } |
| 1570 | | |
| 1571 | 1571 | $args = wp_parse_args( array( 'slug' => sanitize_title( $term ) ), $defaults ); |
| 1572 | 1572 | $terms = get_terms( $args ); |
| 1573 | 1573 | if ( empty( $terms ) || is_wp_error( $terms ) ) { |