Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit a047976

Browse files
committed
#227 - Junk variables in multi_text removed.
Signed-off-by: Kevin Provance <kevin.provance@gmail.com>
1 parent 631ef75 commit a047976

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redux-core/inc/fields/multi_text/class-redux-multi-text.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function render() {
4444

4545
if ( isset( $this->value ) && is_array( $this->value ) ) {
4646
foreach ( $this->value as $k => $value ) {
47-
if ( '' !== $value || ( true === $this->show_empty ) ) {
47+
if ( '' !== $value || ( true === $this->field['show_empty'] ) ) {
4848
echo '<li>';
4949
echo '<input
5050
type="text"
@@ -61,7 +61,7 @@ class="deletion redux-multi-text-remove">' .
6161
echo '</li>';
6262
}
6363
}
64-
} elseif ( true === $this->show_empty ) {
64+
} elseif ( true === $this->field['show_empty'] ) {
6565
echo '<li>';
6666
echo '<input
6767
type="text"
@@ -80,7 +80,7 @@ class="deletion redux-multi-text-remove">' .
8080
}
8181

8282
$the_name = '';
83-
if ( isset( $this->value ) && empty( $this->value ) && false === $this->show_empty ) {
83+
if ( isset( $this->value ) && empty( $this->value ) && false === $this->field['show_empty'] ) {
8484
$the_name = $this->field['name'] . $this->field['name_suffix'];
8585
}
8686

0 commit comments

Comments
 (0)