From a5e4764a3561dfc55a7fcc17039932a3e77934a9 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 2 May 2021 21:21:32 +0100 Subject: [PATCH] fix: fix variable clash --- src/admin/layout/class-engine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/layout/class-engine.php b/src/admin/layout/class-engine.php index b6286bb..dcdd26f 100644 --- a/src/admin/layout/class-engine.php +++ b/src/admin/layout/class-engine.php @@ -417,11 +417,11 @@ abstract class Engine { protected function add_select_box( string $setting_name, array $options ): string { // Collect data for given settings field. $data = $this->load_setting( $setting_name ); - $options = ''; + $select_options = ''; // Loop through all array keys. foreach ( $options as $value => $caption ) { - $options .= sprintf( + $select_options .= sprintf( '', $value, // Only check for equality, not identity, WRT backlink symbol arrows. @@ -435,7 +435,7 @@ abstract class Engine { '', $data['name'], $data['id'], - $options + $select_options ); }