Skip to content

Commit 1fe993f

Browse files
committed
View Transitions: Fix variable reference in settings.php for selector options input handling
1 parent 05444d4 commit 1fe993f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/view-transitions/includes/settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ function plvt_sanitize_setting( $input ): array {
128128
'post_content_selector',
129129
);
130130
foreach ( $selector_options as $selector_option ) {
131-
if ( isset( $value[ $selector_option ] ) && is_string( $value[ $selector_option ] ) ) {
132-
$selector_option_value = trim( sanitize_text_field( $value[ $selector_option ] ) );
131+
if ( isset( $input[ $selector_option ] ) && is_string( $input[ $selector_option ] ) ) {
132+
$selector_option_value = trim( sanitize_text_field( $input[ $selector_option ] ) );
133133
if ( '' !== $selector_option_value ) {
134134
$value[ $selector_option ] = $selector_option_value;
135135
}

0 commit comments

Comments
 (0)