Changeset 39345 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 11/23/2016 06:04:23 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r39332 r39345 3968 3968 return new WP_Error( 'invalid_value', __( 'Invalid value for background repeat.' ) ); 3969 3969 } 3970 } else 3970 } elseif ( 'background_attachment' === $setting->id ) { 3971 3971 if ( ! in_array( $value, array( 'fixed', 'scroll' ) ) ) { 3972 3972 return new WP_Error( 'invalid_value', __( 'Invalid value for background attachment.' ) ); 3973 3973 } 3974 } else 3974 } elseif ( 'background_position_x' === $setting->id ) { 3975 3975 if ( ! in_array( $value, array( 'left', 'center', 'right' ), true ) ) { 3976 3976 return new WP_Error( 'invalid_value', __( 'Invalid value for background position X.' ) ); 3977 3977 } 3978 } else 3978 } elseif ( 'background_position_y' === $setting->id ) { 3979 3979 if ( ! in_array( $value, array( 'top', 'center', 'bottom' ), true ) ) { 3980 3980 return new WP_Error( 'invalid_value', __( 'Invalid value for background position Y.' ) ); 3981 3981 } 3982 } else 3982 } elseif ( 'background_size' === $setting->id ) { 3983 3983 if ( ! in_array( $value, array( 'auto', 'contain', 'cover' ), true ) ) { 3984 3984 return new WP_Error( 'invalid_value', __( 'Invalid value for background size.' ) ); 3985 3985 } 3986 } else 3986 } elseif ( 'background_preset' === $setting->id ) { 3987 3987 if ( ! in_array( $value, array( 'default', 'fill', 'fit', 'repeat', 'custom' ), true ) ) { 3988 3988 return new WP_Error( 'invalid_value', __( 'Invalid value for background size.' ) ); 3989 3989 } 3990 } else 3990 } elseif ( 'background_image' === $setting->id || 'background_image_thumb' === $setting->id ) { 3991 3991 $value = empty( $value ) ? '' : esc_url_raw( $value ); 3992 3992 } else {
Note: See TracChangeset
for help on using the changeset viewer.