[wp-trac] [WordPress Trac] #57041: Deprecate `get_page_by_title()` in favour of `WP_Query`

WordPress Trac noreply at wordpress.org
Wed Feb 8 19:25:33 UTC 2023


#57041: Deprecate `get_page_by_title()` in favour of `WP_Query`
--------------------------------------+----------------------------
 Reporter:  peterwilsoncc             |       Owner:  peterwilsoncc
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.2
Component:  Posts, Post Types         |     Version:  2.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+----------------------------

Comment (by afragen):

 @peterwilsoncc using the plugins_loaded hook works if the user is logged
 in but doesn’t seem to work if user is not logged in. I’ll need to
 investigate further.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57041#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list