[wp-trac] [WordPress Trac] #54493: Block Themes: Update the theme folders to be templates and parts

WordPress Trac noreply at wordpress.org
Thu Nov 25 10:24:27 UTC 2021


#54493: Block Themes: Update the theme folders to be templates and parts
----------------------------+---------------------
 Reporter:  youknowriad     |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.9
Component:  Themes          |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Description changed by youknowriad:

Old description:

> This ticket is here to track the backport of
> https://github.com/WordPress/gutenberg/issues/36548 implemented in
> https://github.com/WordPress/gutenberg/pull/36647
>
> The idea is to use "templates" and "parts" as folders instead of "block-
> templates" and "block-template-parts" for block themes while retaining
> backward compatibility for the latter.
>
> While there are already themes that use the previous folders here, we
> prefer to update the folders while the number of themes is small 20/30
> early adopters to ensure consistency in theme folders for all FSE themes
> (we expect a far bigger number in the future).
>
> Delaying this change to 6.0 would be more impactful since more themes
> would exist at that point and plugins might start relying on the presence
> of the old folders.

New description:

 This ticket is here to track the backport of
 https://github.com/WordPress/gutenberg/issues/36548 implemented in
 https://github.com/WordPress/gutenberg/pull/36647

 The idea is to use "templates" and "parts" as folders instead of "block-
 templates" and "block-template-parts" for block themes while retaining
 backward compatibility for the latter.

 While there are already themes that use the previous folders here, we
 prefer to update the folders while the number of themes is small 20/30
 early adopters to ensure consistency in theme folders for all FSE themes
 (we expect a far bigger number in the future).

 Existing FSE themes will continue to work properly without any change,
 backward compatibility for the previous folders will be kept.

 Delaying this change to 6.0 would be more impactful since more themes
 would exist at that point and plugins might start relying on the presence
 of the old folders.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54493#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list