wordpress-develop/tests/phpunit/data/themedir1
Peter Wilson 72bc35114b Themes: Accept valid block themes.
Updates theme validation to accept block themes. This replaces the requirement for an `index.php` with a requirement for either an `index.php`, `/templates/index.html` or the deprecated `/block-templates/index.html`.

Validation is updated for theme uploads, within `WP_Theme::__construct` and `validate_current_theme()`. 

A block theme using the deprecated file structure is now included in the unit tests.

Props peterwilsoncc, sergeybiryukov, hellofromtonya, costdev, azaozz, gziolo, FlorianBrinkmann, Boniu91, aristath, poena, audrasjb.
Fixes #55754.


git-svn-id: https://develop.svn.wordpress.org/trunk@53416 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 00:47:45 +00:00
..
block_theme-[0.4.0] REST API: Support . in theme directory names in WP_REST_Global_Styles_Controller, WP_REST_Templates_Controller, and WP_REST_Themes_Controller. 2021-12-21 04:12:06 +00:00
block-theme Editor: Allow registration of blocks that include assets from within a theme 2022-04-07 11:57:16 +00:00
block-theme-child Themes: Update the base folders for templates and template parts in block themes. 2021-11-25 10:57:19 +00:00
block-theme-deprecated-path Themes: Accept valid block themes. 2022-05-20 00:47:45 +00:00
broken-theme Tests: Add a placeholder file to the broken-theme directory so it isn't removed when synced to git. 2014-01-06 18:26:07 +00:00
camelCase Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
child-parent-itself Themes: Report theme as broken that sets itself as its parent. 2017-09-26 08:53:20 +00:00
default Themes: Allow template loading functions to pass additional arguments to the template via the $args parameter. 2020-07-07 11:00:21 +00:00
empty-fontface-theme Themes: Add internal-only theme.json's webfonts handler (stopgap). 2022-04-26 14:46:37 +00:00
internationalized-theme I18N: Remove the requirement to call load_plugin_textdomain() / load_theme_textdomain(). 2016-05-10 20:04:52 +00:00
page-templates Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
page-templates-child Themes: Add files missed in [41975]. 2017-10-23 20:22:44 +00:00
rest-api REST API: Add additional fields to the themes controller. 2020-06-07 06:44:08 +00:00
sandbox Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
stylesheetonly General: Ensure svn:eol-style is consistently set for all recently added files. 2021-06-27 12:44:45 +00:00
subdir REST API: Support . in theme directory names in WP_REST_Global_Styles_Controller, WP_REST_Templates_Controller, and WP_REST_Themes_Controller. 2021-12-21 04:12:06 +00:00
theme1 Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
theme1-dupe Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:31:22 +00:00
webfonts-theme Themes: Add internal-only theme.json's webfonts handler (stopgap). 2022-04-26 14:46:37 +00:00