Merge branch 'release/0.21.0' of github.com:tainacan/tainacan into release/0.21.0
This commit is contained in:
commit
1a5def17c6
|
@ -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_();
|
||||||
|
|
Loading…
Reference in New Issue