Opened 10 years ago
Closed 10 years ago
#36761 closed defect (bug) (fixed)
Second parameter missing in some `'default_option_' . $option` filters
| Reported by: | dlh | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Options, Meta APIs | Version: | 4.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
$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.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 37367: