[wp-trac] [WordPress Trac] #34183: Add context to `doing_it_wrong_trigger_error` filter

WordPress Trac noreply at wordpress.org
Tue Aug 28 13:37:29 UTC 2018


#34183: Add context to `doing_it_wrong_trigger_error` filter
--------------------------+-----------------------
 Reporter:  dd32          |       Owner:  flixos90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.0
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43587" 43587]:
 {{{
 #!CommitTicketReference repository="" revision="43587"
 General: Provide context parameters to `doing_it_wrong_trigger_error`
 filter.

 `$function`, `$message`, and `$version` have historically been passed to
 the `doing_it_wrong_run` action. It makes sense to pass those to the
 filter as well, so that one can conditionally determine the filter value
 to return.

 Fixes #34183.
 }}}

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


More information about the wp-trac mailing list