Prior to WP 4.5 (no longer supported by this plugin), get_terms() function had a signature of get_terms( $taxonomy, $args ). Since then, it is now get_terms( $args ). The second parameter is deprecated, and the taxonomy is found under the $args['taxonomy]` field.
|
$zones = get_terms( $this->zone_taxonomy, $args ); |
uses the legacy format of the function call, and generates a warning in WordPressCS. This should be updated to use the modern signature. Tests should ideally be written to ensure that the zone_taxonomy class property is merged into the $args for the
get_zones() function in which the
get_terms() call is found.
Prior to WP 4.5 (no longer supported by this plugin),
get_terms()function had a signature ofget_terms( $taxonomy, $args ). Since then, it is nowget_terms( $args ). The second parameter is deprecated, and the taxonomy is found under the$args['taxonomy]` field.zoninator/zoninator.php
Line 1335 in 0b7e9d3
get_zones()function in which theget_terms()call is found.