[wp-trac] [WordPress Trac] #64250: Refactor redirect_guess_404_permalink to use WP_Query instead of raw SQL

WordPress Trac noreply at wordpress.org
Wed Nov 19 16:58:55 UTC 2025


#64250: Refactor redirect_guess_404_permalink to use WP_Query instead of raw SQL
--------------------------------------+-----------------------------
 Reporter:  spacedmonkey              |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Permalinks                |     Version:  2.3
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by altf4falt):

 I've refactored the function to use WP Query instead of direct SQL
 queries.

 PR Link: https://github.com/WordPress/wordpress-develop/pull/10531

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


More information about the wp-trac mailing list