Skip to content

Commit

Permalink
Merge pull request #78 from aosmichenko/master
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Aug 8, 2024
2 parents 5588e05 + 246010c commit 3dc13a6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zoninator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,12 +1215,16 @@ function get_zones( $args = array() ) {

$zones = get_terms( $this->zone_taxonomy, $args );

// Add extra fields in description as properties
foreach( $zones as $zone ) {
$zone = $this->_fill_zone_details( $zone );
if ( ! is_wp_error( $zones ) ) {
// Add extra fields in description as properties
foreach ( $zones as $zone ) {
$zone = $this->_fill_zone_details( $zone );
}

return $zones;
}

return $zones;
return false;
}

function get_zone( $zone ) {
Expand Down

0 comments on commit 3dc13a6

Please sign in to comment.