[wp-trac] [WordPress Trac] #61045: Options: Update default autoload values used in core

WordPress Trac noreply at wordpress.org
Fri Apr 19 19:56:10 UTC 2024


#61045: Options: Update default autoload values used in core
--------------------------------+----------------------
 Reporter:  joemcgill           |      Owner:  pbearne
     Type:  defect (bug)        |     Status:  assigned
 Priority:  normal              |  Milestone:  6.6
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+----------------------
 Following r57920, WordPress will now use one of 'on', 'off', 'auto-on',
 'auto-off', or 'auto' for the autoload value stored in the DB, while still
 supporting the previous 'yes' and 'no' values for backwards compatibility.

 However, there are still many places in core that will create new options
 using the previous values. These should be updated to use the new schema
 for consistency.

 Most notably, `populate_options()` sets options on a new site using the
 previous 'yes' or 'no' values.

 Other functions to update:

 * `set_transient()`
 * `add_network_option()`
 * `wp_ajax_wp_compression_test()`

 There may be others that I missed in a quick scan of the codebase, but
 those should cover most cases.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61045>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list