create-block-theme/tests
Jeff Ong cdede9a46c
Adds minimum WordPress version to theme metadata (#715)
* Add a field for required wordpress version.

* Add a minimum required version if none exists.

* Sanitize the requires_wp attribute.

* Use SelectControl instead of TextControl and rename attribute to requires_wp.

* Update includes/create-theme/theme-styles.php

Co-authored-by: Grant Kinney <creativecoder@users.noreply.github.com>

* Try generating the minimum versions instead.

* Ensure Required WP version is updated when readme is updated.

* Use current wordpress version if none is provided.

* Use a dynamic value for Requires at least when theme readme and style.css are created.

* Make variable names consistent.

* Check for empty string and use current wordpress version as fallback.

* Add minimum version to additional metadata panel.

---------

Co-authored-by: Grant Kinney <creativecoder@users.noreply.github.com>
2024-09-20 12:33:50 -04:00
..
CbtThemeLocale Update escaping function (#683) 2024-09-03 08:39:21 -03:00
CbtThemeReadme Adds minimum WordPress version to theme metadata (#715) 2024-09-20 12:33:50 -04:00
data Fix template texts localizing/escaping (#641) 2024-05-16 14:04:45 -04:00
bootstrap.php Use CORE for Font Management (#518) 2024-03-22 06:48:47 -04:00
test-theme-fonts.php Rename font assets when theme is saved and/or exported (#712) 2024-09-05 10:22:01 -03:00
test-theme-media.php Add prefix to the names in the PHP global namespace. (#628) 2024-05-14 07:27:30 -04:00
test-theme-templates.php Update escaping function (#683) 2024-09-03 08:39:21 -03:00
test-theme-utils.php Remove "Categories: hidden" from default pattern header (#718) 2024-09-13 10:50:12 +01:00