[wp-trac] [WordPress Trac] #26394: In update_option if option is missing add the option with autoload no
WordPress Trac
noreply at wordpress.org
Fri Mar 6 13:45:15 UTC 2015
#26394: In update_option if option is missing add the option with autoload no
--------------------------------+---------------------------
Reporter: codix | Owner: boonebgorges
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.2
Component: Options, Meta APIs | Version: 3.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
--------------------------------+---------------------------
Comment (by boonebgorges):
dd32 - It never dawned on me that one would want to use this to change
`autoload` for existing options, but on reflection I totally agree.
> We could reduce the weight of that change by requiring the value
changes as part of the update.
Yeah. There would be a lot of questions about return values and hooks if
it were possible to update `autoload` without also updating `value`. I'll
try to make the requirement clear in the docs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26394#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list