[wp-trac] [WordPress Trac] #16557: Ability to disable redirect_guess_404_permalink()

WordPress Trac noreply at wordpress.org
Thu Apr 23 10:55:50 UTC 2020


#16557: Ability to disable redirect_guess_404_permalink()
-------------------------------------------------+-------------------------
 Reporter:  msafi                                |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.5
Component:  Canonical                            |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:
  tests needs-dev-note                           |
-------------------------------------------------+-------------------------

Comment (by Confridin):

 Last patch works as expected, for both filters :


 {{{
 // Kills guess_404_function
 add_filter( 'do_redirect_guess_404_permalink', '__return_false' );

 // Makes strict guess instead of a loose one
 add_filter( 'strict_redirect_guess_404_permalink', '__return_true' );
 }}}

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


More information about the wp-trac mailing list