wordpress-develop/tests/phpunit/tests/theme
Peter Wilson 4d772a52b6 Editor: Prevent KSES stripping global layout style properties.
Layout style properties are stored using indirect values, rather than direct CSS properties. 

Allow users without the `unfiltered_html` capability to modify global styles using the indirect block spacing properties `contentSize`, `wideSize`, and `blockGap`, using a mapping of the eventual CSS property to the indirect property stored in `theme.json`. The mapped CSS property is then used for CSS validation.

Props andrewserong, costdev, hellofromtonya, mamaduka, mmtr86.
Fixes #57321.




git-svn-id: https://develop.svn.wordpress.org/trunk@55345 602fd350-edb4-49c9-b593-d223f7449a82
2023-02-15 03:55:12 +00:00
..
base.php Editor: Ensure global styles are rendered for third-party blocks. 2022-10-27 15:39:20 +00:00
customHeader.php Code Modernization: Explicitly declare all properties created in set_up() methods of various test classes. 2022-08-27 12:30:08 +00:00
getThemeStarterContent.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
support.php Themes: Correct the logic for displaying a _doing_it_wrong() notice for add_theme_support( 'html5' ). 2022-03-07 14:42:49 +00:00
themeDir.php REST API: Support non-Latin characters in template route regex. 2023-02-07 23:45:18 +00:00
wpAddGlobalStylesForBlocks.php Editor: Ensure global styles are rendered for third-party blocks. 2022-10-27 15:39:20 +00:00
wpGetGlobalStylesheet.php Editor: Use a non-persistent object cache instead of transient in wp_get_global_stylesheet(). 2023-01-26 23:01:10 +00:00
wpGetGlobalStylesSvgFilters.php Editor: Use a non-persistent object cache instead of transient in wp_get_global_stylesheet(). 2023-02-01 22:57:04 +00:00
wpTheme.php Themes: Add caching to WP_Theme::is_block_theme(). 2023-02-06 19:57:41 +00:00
wpThemeGetAllowedFilters.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
wpThemeHasThemeJson.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:38:16 +00:00
wpThemeJson.php Editor: Prevent KSES stripping global layout style properties. 2023-02-15 03:55:12 +00:00
wpThemeJsonResolver.php Themes: Revert appearance tools theme support. 2023-02-07 16:42:11 +00:00
wpThemeJsonSchema.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2022-11-29 12:32:37 +00:00