[wp-trac] [WordPress Trac] #57129: Wrong Page Template Displayed in 6.1.x

WordPress Trac noreply at wordpress.org
Tue Nov 22 09:04:12 UTC 2022


#57129: Wrong Page Template Displayed in 6.1.x
-------------------------------------------+------------------------------
 Reporter:  taupecat                       |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Administration                 |     Version:  6.1.1
 Severity:  major                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:  ui
-------------------------------------------+------------------------------

Comment (by petitphp):

 Thanks for the additional input @smerriman

 I did manage to reproduce the issue by creating either a `theme.json` or a
 folder `/templates/index.html` or a folder `block-templates/index.html` in
 a classic theme (twentytwenty). This will trick WordPress into believing
 the theme is block based.

 A quick workaround would be to remove the `index.html` file in the folders
 mentioned above (`templates` or `blocks-templates`).

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


More information about the wp-trac mailing list