create-block-theme/tests/CbtThemeReadme
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
..
addOrUpdateSection.php Add prefix to the names in the PHP global namespace. (#628) 2024-05-14 07:27:30 -04:00
base.php Sanitize DOS (Windows) new line style on readme.txt (#681) 2024-07-03 17:59:42 +04:00
create.php Adds minimum WordPress version to theme metadata (#715) 2024-09-20 12:33:50 -04:00
filePath.php Add prefix to the names in the PHP global namespace. (#628) 2024-05-14 07:27:30 -04:00
getContent.php Add prefix to the names in the PHP global namespace. (#628) 2024-05-14 07:27:30 -04:00
update.php Adds minimum WordPress version to theme metadata (#715) 2024-09-20 12:33:50 -04:00