[wp-trac] [WordPress Trac] #46813: wp_die() may generate doing_it_wrong notices, confusing other WP error handling

WordPress Trac noreply at wordpress.org
Sat Apr 13 11:55:40 UTC 2019


#46813: wp_die() may generate doing_it_wrong notices, confusing other WP error
handling
----------------------------------+---------------------
 Reporter:  ohiosierra            |       Owner:  (none)
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  5.2
Component:  Bootstrap/Load        |     Version:  trunk
 Severity:  normal                |  Resolution:
 Keywords:  servehappy has-patch  |     Focuses:
----------------------------------+---------------------
Changes (by spacedmonkey):

 * keywords:  needs-refresh needs-patch servehappy => servehappy has-patch


Comment:

 @tmdesigned patch looks good. Couple of piece of feedback.
 {{{#!php
   add_filter( 'doing_it_wrong_trigger_error', __return_false );
 }}}

 The function call needs single quotes around it.
 I could put default priority and arg number. So this

 {{{#!php
   add_filter( 'doing_it_wrong_trigger_error', '__return_false', 10, 1 );
 }}}

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


More information about the wp-trac mailing list