Open jffng opened 3 months ago
I think these may be related and/or duplicate issues: #31633 #63124 #64303
I think we should disable template previews and template editing for hybrid themes unless we're certain that the associated template is a block template one.
I tried looking into this today but was not able to get any closer to solving it.
Description
The post template editor shows the wrong template for hybrid themes that contain a mix of block and php templates.
Step-by-step reproduction instructions
single.php
orpage.php
(e.g.twentytwentyone
)templates/index.html
file.index.html
, instead ofsingle.php
.single.php
.Screenshots, screen recording, code snippet
https://github.com/user-attachments/assets/7234ddf6-892a-4428-98bb-015d4c5eaff1
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.