Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54829, comment 2


Ignore:
Timestamp:
01/15/2022 11:11:38 PM (3 years ago)
Author:
exstheme
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54829, comment 2

    initial v1  
    44
    55Yes, you're absolutely right!
    6 We have Classic theme but want to add an option to our users to use new WP5.9 full site editor feature if they want to use it - without changing they theme.
     6We have Classic theme but want to add an option to our users to use new WP5.9 full site editor feature if they want to use it - without changing their theme.
    77
    88But as I mentioned earlier, currently even if `WP_Theme::is_block_theme()` is returning `false` - front end is using HTML block templates from `templates` and `parts` folders. So we need to add filter on the `theme_root` hook to return some dummy path - this is the only way that I could change this behavior if `templates` and `parts` folders exists.