Commit graph

1066 commits

Author SHA1 Message Date
Aki Hamano
d78536dac8
PHPCS: enalbe VariableAnalysis.CodeAnalysis.VariableAnalysis rule (#782)
Some checks failed
Run checks / Lint (push) Has been cancelled
Run checks / Test Suite (push) Has been cancelled
* PHPCS: enalbe VariableAnalysis.CodeAnalysis.VariableAnalysis rule

* Fix all php lint error

* Restore method call

* remove comment
2025-09-16 01:07:34 +09:00
Aki Hamano
a52d29c37a
Clean up package.json and update libraries (#781) 2025-09-16 00:55:58 +09:00
Aki Hamano
c5dc3d0b6f
Bump minimum required WordPress version to 6.7 (#775) 2025-06-07 14:46:04 -04:00
Lovro Hrust
654714b143
added filters for changing paths (#771) 2025-05-29 21:43:05 -04:00
Tremi Dkhar
b51c8545df
Add option to remove taxonomy query from query block attributes (#734) (#743)
Co-authored-by: Jason Crist <jcrist@pbking.com>
2025-05-29 21:36:30 -04:00
Aki Hamano
7ff025488c
wp-env: remove mappings field (#774) 2025-05-29 18:23:46 -04:00
github-actions[bot]
b9e0228e39
Version bump & changelog update (#769)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-22 10:26:13 +09:00
Aki Hamano
40cb8a2970
Update "Tested up to" version to 6.8 (#768) 2025-04-18 14:56:22 +09:00
Jason Crist
6ac2f735dd
Update wp-env configuration to use 'development mode' and to store themes in an accessible place for development (#764) 2025-04-16 08:13:09 -04:00
Aki Hamano
13da0d2064
Code Quality: fix browser deprecation warning (#762) 2025-04-15 21:55:59 +09:00
Aki Hamano
0c2d483e4c
PHPCS: Remove unused files and adjust release files (#754) 2025-04-10 18:39:38 +09:00
Aki Hamano
4e1c775c54
GitHub Actions: Install Subversion (#761) 2025-04-08 13:32:09 +09:00
Aki Hamano
cac02eb112
Polish plugin sidebar buttons (#755) 2025-04-08 00:26:55 +09:00
Aki Hamano
1dbb668de1
Clean up package.json and update @wordpress/env (#753)
* Clean up package.json and update @wordpress/env

* Restore eslint-plugin-unicorn
2024-12-24 20:22:33 +09:00
Matias Benedetto
c8e9e556e6
Tested up to: 6.7 (#751) 2024-11-27 12:31:22 -03:00
Matias Benedetto
ea309e0924
Add figcaption escaping for image and video blocks (#745)
* add figcaption escaping for video and image blocks.

* update image block test and add video block test
2024-11-11 09:18:02 -03:00
github-actions[bot]
13cb16c10e
Version bump & changelog update (#739)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-23 14:15:03 -03:00
Jeff Ong
512b9f80df
Process inner html of blocks when escaping text content (#719)
* WIP working to convert attributes and URLs.

* Ensure media is added to local.

* Use a list of tokens and sprintf to generate the formatted string.

* Only format the string if tokens are present.

* Update content with html test.

Update remaining tests with inner markup.

Try and fix tests.

Format tests.

* Remove whitespace.

* Process all attributes
Escape at the end.
Provide better translation note.

* Refactor token processing to its own class.

* Update tests with string replacements and translation.

* Check if % exists in the text and escape it.

* Add a test case for a localizing text that includes a %.

* Add new line at the end of translators note

* Reformat numbers in translators note

* Update test

* Move new line to theme-locale

* Handle self closing tags

* Refactor how new line is added

* Attempt to fix tests

* Attempt to fix tests again

---------

Co-authored-by: Grant Kinney <1699996+creativecoder@users.noreply.github.com>
Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
Co-authored-by: Matias Benedetto <matias.benedetto@gmail.com>
2024-10-23 14:06:06 -03:00
Jason Crist
33c5ff9ad4
Removed all of the code relating to 'folder management' of a theme. (#723) 2024-09-25 21:39:54 -03:00
tomoki shimomura
55a60de2cd
Fix Image URL Localization URI (#720)
* fix #714

* fix

* fix

* fix

* fix

* lint

---------

Co-authored-by: Madhu Dollu <madhusudhan.dollu@gmail.com>
2024-09-25 21:23:27 -03:00
Aki Hamano
ffa9186a50
Add __nextHasNoMarginBottom to BaseControl-based components (#729) 2024-09-23 21:20:23 +09:00
github-actions[bot]
6824dc0446
Version bump & changelog update (#727)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-20 16:20:20 -03:00
Matias Benedetto
27c0fb7ba9
Copy font assets to the local theme folder when creating a style variation (#713)
* add option in frontend to opt-in saving font assets to local theme folder

* shorter help text

* copy font assets to the local theme folder when creating a style variation

* skip font faces that has already a theme relative path

---------

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-09-20 15:11:44 -03:00
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
Maggie
fbf99339d2
Add a main tag wrapper around the query loop (#726) 2024-09-20 09:42:40 +01:00
Sarah Norris
8993439e59
Remove "Categories: hidden" from default pattern header (#718)
* Remove Categories: hidden from default pattern header

* Remove Categories: hidden from theme utils test
2024-09-13 10:50:12 +01:00
John Caruso
1c4419a973
Fix "troobleshooting" typo in readme.txt (#721) 2024-09-11 15:10:22 -03:00
Sarah Norris
350cf046f7
Update node dependencies (#717) 2024-09-10 11:46:17 +01:00
Sarah Norris
2ba5e3afdb
Try: Add synced patterns to theme on save (#675)
* Add savePatterns option

* Add basic add_patterns_to_theme function

* Switch order of save options

* Add prepare_pattern_for_export function

* Copy media to theme filesystem

* Fix pattern slug

* Add replace_local_pattern_references

* Tidy up pattern_from_wp_block

* Add pattern categories

* Default to empty string for categories list

* Potentially save pattern sync status

* Refactor PHP content of pattern_from_template

Co-Authored-By: Elliott Richmond <elliott@squareonemd.co.uk>

* Refactor PHP content of pattern_from_wp_block

Co-Authored-By: Elliott Richmond <elliott@squareonemd.co.uk>

* Delete synced patterns after adding to theme

Co-Authored-By: Elliott Richmond <elliott@squareonemd.co.uk>

* Refactor and add error handling

* Update save patterns option description

* Remove pattern- prefix

* Update option description

* Redirect to patterns page if editing a pattern

* Add check for preference.savePatterns

* Update templates that reference the pattern

---------

Co-authored-by: Elliott Richmond <elliott@squareonemd.co.uk>
2024-09-09 12:14:09 +01:00
Matias Benedetto
4911a06cfb
Rename font assets when theme is saved and/or exported (#712)
* Rename font asset files when theme is saved or exported

* add and update tests

* test

* use sub-directories for each font family
2024-09-05 10:22:01 -03:00
Matias Benedetto
6973cf8690
Update escaping function (#683)
* Update escaping function

* update tests

* add method specific for attributes

* update tests

* Updates to only use wp_kses_post when strings contain html

* remove wp_kses_post as escaping function

* update tests

---------

Co-authored-by: Grant Kinney <hi@grant.mk>
2024-09-03 08:39:21 -03:00
Rinku Y
bbe5ca5dcb
Redirect to proper editor_url (#708)
Redirect to proper editor_url. Update create-modal.js
2024-08-28 15:19:52 -03:00
Damon Cook
61a3d8d3f1
Update README.md disclaimer wording and formatting (#703) 2024-08-28 15:12:02 -03:00
github-actions[bot]
2f0f2fefc3
Version bump & changelog update (#706)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-23 10:59:35 -03:00
Aki Hamano
baff5dcdc4
Bump minimum required WordPress version to 6.6 (#704) 2024-08-17 19:00:49 +09:00
Aki Hamano
681a5c2fdb
Don't enable sidebar UI in classic theme (#705) 2024-08-17 19:00:20 +09:00
Damon Cook
c54073f7a9
README markdown formatting (#702)
Markdown linter extension for VS Code was speaking to me.
2024-08-16 17:03:58 +01:00
Damon Cook
1840e8754b
Update broken link in README (#701) 2024-08-17 00:29:07 +09:00
Matias Benedetto
228960e433
update blank themes theme json version (#700) 2024-08-15 12:24:51 -03:00
Matias Benedetto
36310c3c79
Global Styles JSON data inspector (#697)
* Add global styles inspector

* rename option

* rename option

Co-authored-by: Jeff Ong <jonger4@gmail.com>

* rename option

---------

Co-authored-by: Jeff Ong <jonger4@gmail.com>
2024-08-12 12:52:31 -03:00
Aki Hamano
a8b2e52a9b
Delete only theme-related caches when saving changes (#685) 2024-08-02 00:24:38 +09:00
Sarah Norris
776139256f
Update "Tested up to" version to 6.6 (#694) 2024-08-01 15:49:48 +01:00
Matias Benedetto
ee2392c407
Add theme reset section (#687)
* add theme reset api endpoint

* add theme reset frontend

* add confirm dialog

* improve wording

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

* undo unwanted change

---------

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-08-01 11:25:29 +01:00
Matias Benedetto
082be0b85d
Sanitize DOS (Windows) new line style on readme.txt (#681)
* sanitize windows new lines

* add tests
2024-07-03 17:59:42 +04:00
github-actions[bot]
29c8dbc136
[Automation] New minor Release: 2.3.0 (#679)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-02 11:23:17 +01:00
Sarah Norris
070c444448
Persist font settings when cloning a theme (#678) 2024-07-02 10:37:40 +01:00
Aki Hamano
8fa60a58c5
Landing Page: Improve design (#673)
* Landing Page: Improve design

* Restore link color
2024-06-18 20:48:08 +09:00
Sarah Norris
4d275c77aa
Fix small readme typo (#674) 2024-06-18 12:37:58 +01:00
Aki Hamano
93fafc7aae
a11y: Improve color contrast for help button (#672) 2024-06-17 11:55:45 +09:00
Aki Hamano
58fed318c7
Quality: Fix warning error when exporting theme (#671) 2024-06-10 23:14:51 +09:00