Make WordPress Core

Ticket #54534: 54534.diff

File 54534.diff, 625 bytes (added by Chouby, 2 years ago)
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index 5b1acb4fc6..9776627a5c 100644
    function get_term_by( $field, $value, $taxonomy = '', $output = OBJECT, $filter 
    10661066                        return false;
    10671067        }
    10681068
     1069        /**
     1070         * Filters the terms query arguments when initiated by get_term_by().
     1071         *
     1072         * @since 5.9.0
     1073         *
     1074         * @param array $args An array of get_terms() arguments.
     1075         */
     1076        $args = apply_filters( 'get_term_by_args', $args );
     1077
    10691078        $terms = get_terms( $args );
    10701079        if ( is_wp_error( $terms ) || empty( $terms ) ) {
    10711080                return false;