Skip to content

Commit

Permalink
Customize: Revert [43619] from the 4.9 branch.
Browse files Browse the repository at this point in the history
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x.

See #44809.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43702 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Oct 11, 2018
1 parent 58fbc2a commit 0243b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-customize-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ public function validate_setting_values( $setting_values, $options = array() ) {
if ( ! is_wp_error( $validity ) ) {
/** This filter is documented in wp-includes/class-wp-customize-setting.php */
$late_validity = apply_filters( "customize_validate_{$setting->id}", new WP_Error(), $unsanitized_value, $setting );
if ( is_wp_error( $late_validity ) && ! empty( $late_validity->errors ) ) {
if ( ! empty( $late_validity->errors ) ) {
$validity = $late_validity;
}
}
Expand Down

0 comments on commit 0243b1c

Please sign in to comment.