diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 71280f0437..5177132676 100644
a
|
b
|
function wp_update_term( $term_id, $taxonomy, $args = array() ) { |
3162 | 3162 | return new WP_Error( 'invalid_term', __( 'Empty Term.' ) ); |
3163 | 3163 | } |
3164 | 3164 | |
| 3165 | /** |
| 3166 | * Filters a term before it is sanitized and updated into the database. |
| 3167 | * |
| 3168 | * @since 6.4 |
| 3169 | * |
| 3170 | * @param WP_Term $term Term object |
| 3171 | * @param string $taxonomy Taxonomy slug. |
| 3172 | * @param array $args Array of arguments passed to wp_update_term(). |
| 3173 | */ |
| 3174 | $term = apply_filters( 'pre_update_term', $term, $taxonomy, $args ); |
| 3175 | |
3165 | 3176 | $term = (array) $term->data; |
3166 | 3177 | |
3167 | 3178 | // Escape data pulled from DB. |