[wp-trac] [WordPress Trac] #61929: Update documentation for remaining autoload functions to only include `true|false` as parameter values

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


#61929: Update documentation for remaining autoload functions to only include
`true|false` as parameter values
--------------------------------+--------------------------------
 Reporter:  flixos90            |       Owner:  flixos90
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.7
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  docs, performance
--------------------------------+--------------------------------
Changes (by flixos90):

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


Comment:

 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/61929#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list