[wp-trac] [WordPress Trac] #63479: current_filter() can return false if fatal

WordPress Trac noreply at wordpress.org
Tue May 27 00:23:40 UTC 2025


#63479: current_filter() can return false if fatal
--------------------------------------------+---------------------
 Reporter:  kkmuffme                        |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  6.9
Component:  Plugins                         |     Version:
 Severity:  trivial                         |  Resolution:
 Keywords:  has-patch commit has-test-info  |     Focuses:  docs
--------------------------------------------+---------------------
Changes (by SirLouen):

 * keywords:  has-patch needs-test-info commit => has-patch commit has-test-
     info


Comment:

 Replying to [comment:5 peterwilsoncc]:
 > The linked pull request looks good to me.
 >
 > @SirLouen You can see the functions returning false via wp-cli `wp eval
 "var_dump( current_filter() );"` and `wp eval "var_dump( current_action()
 );"`.

 Basically, the idea to trigger `false` is calling `current_filter` in the
 middle of nowhere
 ✅ Reproduced.

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


More information about the wp-trac mailing list