Skip to content

Commit

Permalink
Fix TypeError in qtranxf_term_set_i18n_config (#1314)
Browse files Browse the repository at this point in the history
Remove arg type declaration as this function must also accept `object`.
  • Loading branch information
herrvigg committed Apr 10, 2023
1 parent b858f04 commit 7dbd781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
}

/**
* @param WP_Term $term
* @param WP_Term|object $term
*
* @since 3.4.6.9
*
*/
function qtranxf_term_set_i18n_config( WP_Term $term ) {
function qtranxf_term_set_i18n_config( $term ) {
$term->i18n_config = array();
if ( isset( $term->name ) ) {
global $q_config;
Expand Down

0 comments on commit 7dbd781

Please sign in to comment.