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

WordPress Trac noreply at wordpress.org
Wed Feb 1 02:49:29 UTC 2023


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

 * keywords:  reporter-feedback has-patch => has-patch


Comment:

 Yes, this still requires a patch to deprecate the function. I've just
 [https://github.com/WordPress/wordpress-develop/pull/3954 linked a pull
 request].

 The function doesn't appear to be tested but I'll wait for the CI to
 complete to ensure I don't need to add `@expectedDeprecated
 get_page_by_title` anywhere.

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


More information about the wp-trac mailing list