[wp-trac] [WordPress Trac] #54553: Block editor requests to `?_wp-find-template=true` result in a 404 error

WordPress Trac noreply at wordpress.org
Thu Dec 2 04:33:05 UTC 2021

#54553: Block editor requests to `?_wp-find-template=true` result in a 404 error
 Reporter:  noisysocks    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.9
Component:  Editor        |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
 Originally reported in

 If you create a new post (Posts → Add New) and open the Network tab in
 DevTools you'l see a request made to `?_wp-find-template=true` with a 404

 This causes some unexpected behaviour in the post editor, described in the
 issue above.

 I see code which looks like it should handle this query param but the
 function `locate_block_template` doesn't appear to be hooked into
 `wp_loaded` or anything like that.


 I suspect something was missed while backporting the block theme
 infrastructure in #54335 cc. @bernhard-reiter.

Ticket URL: <https://core.trac.wordpress.org/ticket/54553>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list