fix: fix variable clash
This commit is contained in:
parent
114121a7e2
commit
a5e4764a35
1 changed files with 3 additions and 3 deletions
|
@ -417,11 +417,11 @@ abstract class Engine {
|
||||||
protected function add_select_box( string $setting_name, array $options ): string {
|
protected function add_select_box( string $setting_name, array $options ): string {
|
||||||
// Collect data for given settings field.
|
// Collect data for given settings field.
|
||||||
$data = $this->load_setting( $setting_name );
|
$data = $this->load_setting( $setting_name );
|
||||||
$options = '';
|
$select_options = '';
|
||||||
|
|
||||||
// Loop through all array keys.
|
// Loop through all array keys.
|
||||||
foreach ( $options as $value => $caption ) {
|
foreach ( $options as $value => $caption ) {
|
||||||
$options .= sprintf(
|
$select_options .= sprintf(
|
||||||
'<option value="%s" %s>%s</option>',
|
'<option value="%s" %s>%s</option>',
|
||||||
$value,
|
$value,
|
||||||
// Only check for equality, not identity, WRT backlink symbol arrows.
|
// Only check for equality, not identity, WRT backlink symbol arrows.
|
||||||
|
@ -435,7 +435,7 @@ abstract class Engine {
|
||||||
'<select name="%s" id="%s">%s</select>',
|
'<select name="%s" id="%s">%s</select>',
|
||||||
$data['name'],
|
$data['name'],
|
||||||
$data['id'],
|
$data['id'],
|
||||||
$options
|
$select_options
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue