[wp-trac] [WordPress Trac] #38176: Add 'default' to register_setting
WordPress Trac
noreply at wordpress.org
Tue Oct 25 19:22:34 UTC 2016
#38176: Add 'default' to register_setting
-------------------------------------------------+-------------------------
Reporter: rmccue | Owner: joehoyle
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback needs-dev- | Focuses:
note needs-refresh |
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"38916"]:
{{{
#!CommitTicketReference repository="" revision="38916"
Options: Make `$passed_default` available in remaining
`default_option_{$option}` filter.
Pass `false` as the `$passed_default` value when the
`default_option_{$option}` filter is applied in `update_option` as no
default is ever passed.
This resolves an error in tests where the 3rd parameter is not available
to `filter_default_option()`.
Fixes #38176.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38176#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list