mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
Widget Customizer: Fix widget filtering.
props westonruter. fixes #27451. git-svn-id: https://develop.svn.wordpress.org/trunk@28044 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1150,7 +1150,7 @@ final class WP_Customize_Widgets {
|
||||
$added_input_vars = array();
|
||||
if ( ! empty( $_POST['sanitized_widget_setting'] ) ) {
|
||||
$sanitized_widget_setting = json_decode( $this->get_post_value( 'sanitized_widget_setting' ), true );
|
||||
if ( empty( $sanitized_widget_setting ) ) {
|
||||
if ( false === $sanitized_widget_setting ) {
|
||||
$this->stop_capturing_option_updates();
|
||||
return new WP_Error( 'widget_setting_malformed' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user