[wp-trac] [WordPress Trac] #56689: Use WP_Query in get_page_by_path
WordPress Trac
noreply at wordpress.org
Fri Feb 3 16:16:11 UTC 2023
#56689: Use WP_Query in get_page_by_path
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.2
Component: Query | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing has-patch has-unit- | Focuses:
tests has-testing-info 2nd-opinion | performance
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
In [changeset:"55215" 55215]:
{{{
#!CommitTicketReference repository="" revision="55215"
Query: Revert [55169].
Revert [55169] and mark #56689 as wontfix. `get_page_by_path` can not use
`WP_Query`, as is results in fatel errors for those using
`get_page_by_path` in the `pre_get_posts` action or `posts_pre_query`
filter. This sadly means that `WP_Query` can never be used in
`get_page_by_path`.
Props spacedmonkey, iandunn, mukesh27, joemcgill, adamsilverstein, otto42.
See #56689.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56689#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list