Make WordPress Core


Ignore:
Timestamp:
07/18/2023 12:00:49 AM (3 years ago)
Author:
flixos90
Message:

Editor: Fix bug where it was not possible to style custom block elements in theme.json.

This changeset resolves a bug where WordPress would only allow HTML elements within core's own blocks to be styled in theme.json. Prior to this change, any theme.json rules applying to elements in custom blocks were ignored. With this fix it is now possible to style third-party block elements in theme.json.

Props flixos90, azaozz, costdev, glendaviesnz, spacedmonkey, oandregal.
Fixes #57868.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/themedir1/block-theme/theme.json

    r55231 r56254  
    7474                "color": {
    7575                    "background": "hotpink"
     76                },
     77                "elements": {
     78                    "cite": {
     79                        "color": {
     80                            "text": "white"
     81                        }
     82                    }
    7683                }
    7784            }
Note: See TracChangeset for help on using the changeset viewer.