Changeset 56779 for branches/6.3/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 10/04/2023 07:08:55 PM (2 years ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-theme-json.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
- Property svn:mergeinfo changed
/trunk merged: 56502,56778
- Property svn:mergeinfo changed
-
branches/6.3/src/wp-includes/class-wp-theme-json.php
r56181 r56779 2850 2850 * 2851 2851 * @since 5.9.0 2852 * @since 6.3.2 Preserves global styles block variations when securing styles. 2852 2853 * 2853 2854 * @param array $theme_json Structure to sanitize. … … 2910 2911 if ( ! empty( $output ) ) { 2911 2912 _wp_array_set( $sanitized, $metadata['path'], $output ); 2913 } 2914 2915 if ( isset( $metadata['variations'] ) ) { 2916 foreach ( $metadata['variations'] as $variation ) { 2917 $variation_input = _wp_array_get( $theme_json, $variation['path'], array() ); 2918 if ( empty( $variation_input ) ) { 2919 continue; 2920 } 2921 2922 $variation_output = static::remove_insecure_styles( $variation_input ); 2923 if ( ! empty( $variation_output ) ) { 2924 _wp_array_set( $sanitized, $variation['path'], $variation_output ); 2925 } 2926 } 2912 2927 } 2913 2928 }
Note: See TracChangeset
for help on using the changeset viewer.