Files
wordpress/wp-includes
hellofromTonya 64fe3efe28 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.
Built from https://develop.svn.wordpress.org/trunk@52316


git-svn-id: http://core.svn.wordpress.org/trunk@51908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-03 19:39:00 +00:00
..
2021-11-30 05:48:28 +00:00
2021-11-30 05:48:28 +00:00
2021-11-30 05:48:28 +00:00
2021-12-01 12:17:00 +00:00
2021-12-01 12:17:00 +00:00
2021-11-30 00:24:27 +00:00
2021-11-30 00:24:27 +00:00