[wp-trac] [WordPress Trac] #53353: have the ability to put FSE files in a theme subfolder

WordPress Trac noreply at wordpress.org
Mon Jun 7 18:26:09 UTC 2021


#53353: have the ability to put FSE files in a theme subfolder
-------------------------+------------------------------
 Reporter:  pbearne      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Themes


Old description:

> Hi All
>
> Looking at the FSE code and thinking how I would apply this to a theme.
>
> It seems to me that we might what to be able to control where the
> theme.json and block-template folder are stored in a theme.
>
> for 2 reasons
> 1. control if a theme is using FSE via setting
>     if we have the setting in a folder and none in the root then until we
> set the folder as the location FSE will be off
> 2. provide more than one set of options
>
> This also makes the folder layout cleaner in current theme that what to
> support both classic and FSE modes

New description:

 Hi All

 Looking at the FSE code and thinking how I would apply this to a theme.

 It seems to me that we might what to be able to control where the
 theme.json and block-template folder are stored in a theme.

 for 2 reasons
 1. control if a theme is using FSE via setting. if we have the setting in
 a folder and none in the root then until we set the folder as the location
 FSE will be off
 2. provide more than one set of options

 This also makes the folder layout cleaner in current theme that what to
 support both classic and FSE modes

--

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


More information about the wp-trac mailing list