Make WordPress Core


Ignore:
Timestamp:
10/27/2022 03:39:20 PM (2 years ago)
Author:
davidbaumwald
Message:

Editor: Ensure global styles are rendered for third-party blocks.

This change ensures custom styles for all third-party blocks are rendered on the front end if assets are set to be loaded on a per-block basis. Additionally, this change includes new unit tests to help prevent a similar bug in the future.

Props scruffian, aristath, poena, wildworks, ajlende, andraganescu, ndiego, gigitux, cbravobernal, ramonopoly, andrewserong, oandregal, hellofromTonya, bernhard-reiter.
Fixes #56915.

File:
1 edited

Legend:

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

    r54443 r54703  
    7070                    "duotone": "var(--wp--preset--duotone--custom-duotone)"
    7171                }
     72            },
     73            "my/third-party-block": {
     74                "color": {
     75                    "background": "hotpink"
     76                }
    7277            }
    7378        },
Note: See TracChangeset for help on using the changeset viewer.