summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
diff options
context:
space:
mode:
authorTonya Mork <hellofromtonya@git.wordpress.org>2023-02-01 13:41:16 +0000
committerTonya Mork <hellofromtonya@git.wordpress.org>2023-02-01 13:41:16 +0000
commit52e5e065b365c6fcd9a5f980b3cfb04d82d0f309 (patch)
tree795be594f9a07919bfd122b1331dec64b463e80d /src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
parent6036ee03af6aba166ab86b0dd9357dff2e2128da (diff)
downloadwordpress-52e5e065b365c6fcd9a5f980b3cfb04d82d0f309.tar.gz
wordpress-52e5e065b365c6fcd9a5f980b3cfb04d82d0f309.zip
Editor: Add support for editing block style variations in global styles.
To allow editing of block style variations in global styles, this changeset adds the following for server side support: * building of block style schema into `WP_Theme_JSON::sanitize()`. * appending of style variation selectors to block metadata in `WP_Theme_JSON::get_blocks_metadata()`. * building of selectors and variations for nodes in `WP_Theme_JSON::get_block_nodes()`. Tests for happy and unhappy paths are included. Reference: * [https://github.com/WordPress/gutenberg/pull/46343 Gutenberg PR 46343] Follow-up to [54118], [50973], [50959]. Props isabel_brison, Fixes #57583. git-svn-id: https://develop.svn.wordpress.org/trunk@55172 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php')
0 files changed, 0 insertions, 0 deletions