Make WordPress Core


Ignore:
Timestamp:
06/06/2024 08:00:08 AM (6 months ago)
Author:
oandregal
Message:

Editor: code quality improvements for theme.json migrate API

Backports https://github.com/WordPress/gutenberg/pull/62305

Follow-up to [58328], #61282.

Props ajlende, oandregal, ramonopoly, mukesh27.
Fixes #61282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r58294 r58354  
    21472147        unset( $decoded_data['isGlobalStylesUserThemeJSON'] );
    21482148
    2149         $data_to_encode = WP_Theme_JSON::remove_insecure_properties( $decoded_data );
     2149        $data_to_encode = WP_Theme_JSON::remove_insecure_properties( $decoded_data, 'custom' );
    21502150
    21512151        $data_to_encode['isGlobalStylesUserThemeJSON'] = true;
Note: See TracChangeset for help on using the changeset viewer.