We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05444d4 commit 1fe993fCopy full SHA for 1fe993f
plugins/view-transitions/includes/settings.php
@@ -128,8 +128,8 @@ function plvt_sanitize_setting( $input ): array {
128
'post_content_selector',
129
);
130
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 ] ) );
+ if ( isset( $input[ $selector_option ] ) && is_string( $input[ $selector_option ] ) ) {
+ $selector_option_value = trim( sanitize_text_field( $input[ $selector_option ] ) );
133
if ( '' !== $selector_option_value ) {
134
$value[ $selector_option ] = $selector_option_value;
135
}
0 commit comments