refactor(wpmc S3): get_terms modern signature + REQUEST_URI cleanup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-12 20:17:08 +05:00
parent 9b23f56e57
commit 259470ca63
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ final class Helpers
$resolved = null;
if ($first_segment !== null) {
$terms = \get_terms('town', [
$terms = \get_terms([
'taxonomy' => 'town',
'hide_empty' => false,
'fields' => 'id=>slug',
]);