[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:31:20 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:  assigned
 Priority:  normal              |   Milestone:  6.7
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  docs, performance
--------------------------------+--------------------------------

Comment (by flixos90):

 @jrf Based on your suggestion, I have updated the PR
 https://github.com/WordPress/wordpress-develop/pull/7250 to more clearly
 soft-deprecate the values.

 I went with a `@since` annotation (including this for `add_option()` and
 `update_option()` where this didn't formally happen during the 6.6 cycle).
 I've also indicated in the parameter docs throughout that using these
 values is deprecated.

 I think this brings all 5 functions in line with each other in that they
 still support these values, but equally document that using them is
 deprecated. Please feel free to take a look.

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


More information about the wp-trac mailing list