Skip to content

Commit 7421594

Browse files
author
Felix Arntz
authored
Merge pull request WordPress#2036 from Soean/fix/view-transition-settings-save
Fix view transitions setting values not being saved
2 parents 05444d4 + 8f3679f commit 7421594

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
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
}

plugins/view-transitions/readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributors: wordpressdotorg
44
Tested up to: 6.8
5-
Stable tag: 1.0.0
5+
Stable tag: 1.0.1
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: performance, view transitions, smooth transitions, animations
@@ -51,6 +51,10 @@ Contributions are always welcome! Learn more about how to get involved in the [C
5151

5252
== Changelog ==
5353

54+
= 1.0.1 =
55+
56+
* Fix view transitions setting values not being saved. ([2036](https://github.com/WordPress/performance/pull/2036))
57+
5458
= 1.0.0 =
5559

5660
* Initial release. ([1997](https://github.com/WordPress/performance/issues/1997))

plugins/view-transitions/view-transitions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Adds smooth transitions between navigations to your WordPress site.
66
* Requires at least: 6.6
77
* Requires PHP: 7.2
8-
* Version: 1.0.0
8+
* Version: 1.0.1
99
* Author: WordPress Performance Team
1010
* Author URI: https://make.wordpress.org/performance/
1111
* License: GPLv2 or later
@@ -25,7 +25,7 @@
2525
return;
2626
}
2727

28-
define( 'VIEW_TRANSITIONS_VERSION', '1.0.0' );
28+
define( 'VIEW_TRANSITIONS_VERSION', '1.0.1' );
2929
define( 'VIEW_TRANSITIONS_MAIN_FILE', __FILE__ );
3030

3131
require_once __DIR__ . '/includes/class-plvt-view-transition-animation.php';

0 commit comments

Comments
 (0)