Merge branch 'release/0.21.0' of github.com:tainacan/tainacan into release/0.21.0

This commit is contained in:
mateuswetah 2024-04-18 16:41:53 -03:00
commit 1a5def17c6
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class Terms extends Repository {
if ( $mapped['map'] != 'termmeta' ) { if ( $mapped['map'] != 'termmeta' ) {
$get_ = 'get_' . $prop; $get_ = 'get_' . $prop;
if ( $term->WP_Term->{$mapped['map']} || if ( isset($term->WP_Term->{$mapped['map']}) ||
($mapped['map'] == 'parent' && $term->WP_Term->{$mapped['map']} >= 0) ) { ($mapped['map'] == 'parent' && $term->WP_Term->{$mapped['map']} >= 0) ) {
$args[ $mapped['map'] ] = $term->$get_(); $args[ $mapped['map'] ] = $term->$get_();