Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve block style variations when securing theme json #53466

Merged
merged 2 commits into from
Aug 11, 2023

Commits on Aug 9, 2023

  1. Preserve block style variations when securing theme json

    Valid and safe block style variations were being removed by
    `WP_Theme_JSON_Gutenberg::remove_insecure_properties` when securing the
    theme.json. When this was a problem varied depending upon site
    configuration, but out-of-the-box it was a problem for administrators on
    multi-site installs.
    
    This change adds explicit processing of variations in
    `remove_insecure_properties` so that they won't get removed.
    dsas committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    ba0f0fd View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Add another variation sanitisation test

    This test checks that when removing insecure properties an
    unknown/unsupported property is removed from the variation.
    dsas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    9a468b7 View commit details
    Browse the repository at this point in the history