[wp-trac] [WordPress Trac] #54553: Block editor requests to `?_wp-find-template=true` result in a 404 error
WordPress Trac
noreply at wordpress.org
Fri Dec 3 19:37:46 UTC 2021
#54553: Block editor requests to `?_wp-find-template=true` result in a 404 error
------------------------------+-----------------------------
Reporter: noisysocks | Owner: hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52316" 52316]:
{{{
#!CommitTicketReference repository="" revision="52316"
Editor: Resolve template request `?_wp-find-template=true` for new posts
and pages.
The template resolution system makes a request like `/?page_id=1234&_wp-
find-template=true`, depending on `WP_Query` to resolve a page or post
using the page_id or p (post_id) in the query string. With new
posts/pages, a placeholder post with the status auto-draft is created. But
by default `WP_Query` will not resolve these posts, unless the query is
specifically set to look for them.
This commit handles the query string to properly resolve a page or post.
It adds 2 private callbacks for the processing.
Props poena, noisysocks, bernhard-reiter, costdev, hellofromTonya.
Fixes #54553.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54553#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list