[wp-meta] [Making WordPress.org] #3724: Avoid warnings being logged by convert_toggles_to_actions

Making WordPress.org noreply at wordpress.org
Thu Jul 19 19:14:25 UTC 2018


#3724: Avoid warnings being logged by convert_toggles_to_actions
----------------------------+-----------------------
 Reporter:  Clorith         |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:
Component:  Support Forums  |   Keywords:  has-patch
----------------------------+-----------------------
 We have a filter that triggers `Moderators::convert_toggles_to_actions()`,
 which expects 3 arguments every time, but the filter doesn't always supply
 3 arguments.

 This patch makes the 3rd (and actually unused at this time) argument
 optional to avoid lots of warnings being logged (or output if you're
 working in a development environment).

 The warning it throws, for reference:

 {{{
 Warning: Missing argument 3 for
 WordPressdotorg\Forums\Moderators::convert_toggles_to_actions()
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3724>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list