[wp-trac] [WordPress Trac] #38176: Add 'default' to register_setting
WordPress Trac
noreply at wordpress.org
Tue Oct 25 18:21:08 UTC 2016
#38176: Add 'default' to register_setting
-------------------------------------------------+-------------------------
Reporter: rmccue | Owner: joehoyle
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.7
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-dev- | Focuses:
note needs-refresh |
-------------------------------------------------+-------------------------
Comment (by jeremyfelt):
[attachment:38176.5.diff] adds `false` as the third parameter when
applying the `default_option_` filter in `update_option()`. This seems
like the right assumption to make here.
This resolves the errors in the tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38176#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list