From 48a6929903653e7da3c5295480eb5fa61a417612 Mon Sep 17 00:00:00 2001 From: Kailey Lampert Date: Sat, 4 Oct 2025 21:30:18 -0600 Subject: [PATCH] fix deprecated use of get_terms() --- src/class-zoninator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class-zoninator.php b/src/class-zoninator.php index ae538f8..d3810d9 100644 --- a/src/class-zoninator.php +++ b/src/class-zoninator.php @@ -1270,14 +1270,14 @@ public function get_zones( $args = array() ) { $args = wp_parse_args( $args, array( + 'taxonomy' => $this->zone_taxonomy, 'orderby' => 'id', 'order' => 'ASC', 'hide_empty' => 0, ) ); - // phpcs:ignore WordPress.WP.DeprecatedParameters.Get_termsParam2Found -- See https://github.com/Automattic/zoninator/issues/111 - $zones = get_terms( $this->zone_taxonomy, $args ); + $zones = get_terms( $args ); if ( ! is_wp_error( $zones ) ) { // Add extra fields in description as properties