[wp-trac] [WordPress Trac] #26084: register_setting() calls filter: sanitize_option_{$option_name}, with wrong $accepted_args value.
WordPress Trac
noreply at wordpress.org
Sun Nov 17 13:54:40 UTC 2013
#26084: register_setting() calls filter: sanitize_option_{$option_name}, with wrong
$accepted_args value.
--------------------------+-----------------------------
Reporter: KingYes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Keywords:
--------------------------+-----------------------------
Hi guys.
When we use with `register_setting()` function, it's call to filter
`sanitize_option_{$option_name}` with one `$accepted_args`.
I just think the filter `"sanitize_option_{$option_name}"`, need to change
the `$accepted_args` var to `"2"`.
Because the `apply_filters` call with two params.
`$value = apply_filters("sanitize_option_{$option}", $value, $option);`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26084>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list