Skip to content

Protect against bad data in processing theme.json #26804

Closed

Description

@oandregal

Steps to reproduce the bug:

  • edit lib/global-styles.php and add a new context that doesn't represent any block's selector. For example, by including a typo such as:
"core/paragrah": { // Note the missing 'p'.
    "settings": {
        "color": {
            "custom": false
        }
    }
}
  • load the front-end of the site and see the error message (you may have to activate WP_DEBUG).

Activity

  1. self-assigned this
    on Nov 7, 2020
  2. added
    [Type] Bug
    Global Styles
    on Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Global Styles[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions