Skip to:
Content

BuddyPress.org

Changeset 12045


Ignore:
Timestamp:
05/03/2018 03:30:38 PM (7 years ago)
Author:
boonebgorges
Message:

Nouveau: Better type handling for Customizer temporary settings.

Fixes #7800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12020 r12045  
    570570    }
    571571
    572     $temporary_setting = json_decode( wp_unslash( $_POST['customized'] ), true );
     572    $temporary_setting = wp_unslash( $_POST['customized'] );
     573    if ( ! is_array( $temporary_setting ) ) {
     574        $temporary_setting = json_decode( $temporary_setting, true );
     575    }
    573576
    574577    // This is used to transport the customizer settings into Ajax requests.
Note: See TracChangeset for help on using the changeset viewer.