[wp-trac] [WordPress Trac] #26394: In update_option if option is missing add the option with autoload no

WordPress Trac noreply at wordpress.org
Tue Mar 3 23:36:53 UTC 2015


#26394: In update_option if option is missing add the option with autoload no
-------------------------------------------------+-------------------------
 Reporter:  codix                                |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Options, Meta APIs                   |  Review
 Severity:  normal                               |     Version:  3.7
 Keywords:  has-patch needs-docs needs-unit-     |  Resolution:
  tests                                          |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch => has-patch needs-docs needs-unit-tests


Comment:

 The new parameter is optional so that should be reflected in the parameter
 description. We'll also need to add a changelog entry to the DocBlock,
 e.g.
 {{{
 @since 4.2.0 The `$autoload` parameter was added.
 }}}

 Also, we probably need unit tests for this.

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


More information about the wp-trac mailing list