create-block-theme/includes
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
..
create-theme Try: Add synced patterns to theme on save (#675) 2024-09-09 12:14:09 +01:00
class-create-block-theme-admin-landing.php Replace/admin interface (#637) 2024-05-28 07:53:06 -04:00
class-create-block-theme-api.php Try: Add synced patterns to theme on save (#675) 2024-09-09 12:14:09 +01:00
class-create-block-theme-editor-tools.php Don't enable sidebar UI in classic theme (#705) 2024-08-17 19:00:20 +09:00
class-create-block-theme-loader.php Add prefix to the names in the PHP global namespace. (#628) 2024-05-14 07:27:30 -04:00
class-create-block-theme.php Replace/admin interface (#637) 2024-05-28 07:53:06 -04:00
index.php Results of lint:php:fix 2023-01-27 17:27:18 +00:00