[wp-trac] [WordPress Trac] #61103: update all update_option calling in core to set the autoload option

WordPress Trac noreply at wordpress.org
Wed Aug 28 22:46:43 UTC 2024


#61103: update all update_option calling in core to set the autoload option
-----------------------------------------------+--------------------------
 Reporter:  pbearne                            |       Owner:  pbearne
     Type:  defect (bug)                       |      Status:  assigned
 Priority:  normal                             |   Milestone:  6.7
Component:  Options, Meta APIs                 |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch early changes-requested  |     Focuses:  performance
-----------------------------------------------+--------------------------

Comment (by flixos90):

 In [changeset:"58949" 58949]:
 {{{
 #!CommitTicketReference repository="" revision="58949"
 Options, Meta APIs: Soft-deprecate use of 'yes' and 'no' as `$autoload`
 parameter.

 WordPress 6.6 option autoload enhancements included discouraging the use
 of 'yes' and 'no' to indicate whether to autoload an option when calling
 `add_option()` or `update_option()`. Instead, a boolean should be used.

 This changeset brings the newer autoload related functions
 `wp_set_option_autoload_values()`, `wp_set_options_autoload()`, and
 `wp_set_option_autoload()` in line with those changes. Additionally, it
 soft-deprecates the values more formally, as they should no longer be
 used. No PHP warnings will be emitted though as this is not a hard
 deprecation. This change is purely about documentation.

 Props flixos90, joemcgill, jrf, mukesh27.
 Fixes #61929.
 See #61103, #61939.
 }}}

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


More information about the wp-trac mailing list