Changeset 47550 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r47387 r47550 5900 5900 public function _sanitize_background_setting( $value, $setting ) { 5901 5901 if ( 'background_repeat' === $setting->id ) { 5902 if ( ! in_array( $value, array( 'repeat-x', 'repeat-y', 'repeat', 'no-repeat' ) ) ) {5902 if ( ! in_array( $value, array( 'repeat-x', 'repeat-y', 'repeat', 'no-repeat' ), true ) ) { 5903 5903 return new WP_Error( 'invalid_value', __( 'Invalid value for background repeat.' ) ); 5904 5904 } 5905 5905 } elseif ( 'background_attachment' === $setting->id ) { 5906 if ( ! in_array( $value, array( 'fixed', 'scroll' ) ) ) {5906 if ( ! in_array( $value, array( 'fixed', 'scroll' ), true ) ) { 5907 5907 return new WP_Error( 'invalid_value', __( 'Invalid value for background attachment.' ) ); 5908 5908 }
Note: See TracChangeset
for help on using the changeset viewer.