Skip to content

Commit

Permalink
Fix customizer import security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
capuderg committed Apr 10, 2024
1 parent 858fb20 commit a754609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/CustomizerImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static function import_customizer_options( $import_file_path ) {
return $raw;
}

$data = unserialize( $raw );
$data = unserialize( $raw , array( 'allowed_classes' => false ) );

// Data checks.
if ( ! is_array( $data ) && ( ! isset( $data['template'] ) || ! isset( $data['mods'] ) ) ) {
Expand Down

0 comments on commit a754609

Please sign in to comment.