Opened 6 years ago
Closed 6 years ago
#3724 closed defect (bug) (fixed)
Avoid warnings being logged by convert_toggles_to_actions
Reported by: | Clorith | Owned by: | Otto42 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | has-patch |
Cc: |
Description
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()
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 7482: