[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:56:46 UTC 2015


#26394: In update_option if option is missing add the option with autoload no
--------------------------------+---------------------------
 Reporter:  codix               |       Owner:  boonebgorges
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.2
Component:  Options, Meta APIs  |     Version:  3.7
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  performance
--------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31640"]:
 {{{
 #!CommitTicketReference repository="" revision="31640"
 Allow `$autoload` setting to be changed for existing options using
 `update_option()`.

 [31628] made it possible to pass an `$autoload` param to `update_option()`
 that
 applies when the option does not yet exist in the database. The current
 changeset introduces parity for existing options: the `$autoload` setting
 for existing options can be changed via the `$autoload` parameter. For
 internal
 simplicity, `$autoload` is ignored for existing options when `$value` is
 not
 also changed.

 This changeset also moves `update_option()` tests into their own class.

 Props dd32.
 Fixes #26394.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26394#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list