[wp-trac] [WordPress Trac] #36761: Second parameter missing in some `'default_option_' . $option` filters
WordPress Trac
noreply at wordpress.org
Thu May 5 03:57:30 UTC 2016
#36761: Second parameter missing in some `'default_option_' . $option` filters
--------------------------------+-----------------------------
Reporter: dlh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
`$option` was added as the second parameter to the `'default_option_' .
$option` filter in 4.4, but it is not included with the filter as applied
in `add_option()` or `update_option()`. Hooks that accept both arguments
can generate a "missing argument" warning when they are called from those
functions.
Patch attached to attempt to fix the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36761>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list