WordPress/wp-admin/network
Felix Arntz 4e167c593d Options, Meta APIs: Explicitly pass $autoload parameter to when potentially adding new options.
It is recommended that for every option it is explicitly set whether to autoload it or not. This changeset updates relevant `update_option()` and `add_option()` calls.

Note that the `$autoload` parameter is only needed for `update_option()` if the option is potentially not present yet, i.e. the call will pass through to `add_option()`. Since WordPress core adds the majority of its options to the database during installation, only `update_option()` calls for dynamically added options need to be modified, which is what this changeset does.

As part of revisiting the autoload values for dynamically added WordPress core options, this changeset modifies some options to no longer be autoloaded, since they are only accessed in a few specific places that are not relevant for a regular request. These options are:
* `recently_activated`
* `_wp_suggested_policy_text_has_changed`
* `{upgradeLock}.lock`
* `dashboard_widget_options`
* `ftp_credentials`
* `adminhash`
* `nav_menu_options`
* `wp_force_deactivated_plugins`
* `delete_blog_hash`
* `allowedthemes`
* `{sessionId}_paused_extensions`
* `recovery_keys`
* `https_detection_errors`
* `fresh_site`

An upgrade routine is present as well that sets those options to no longer autoload for existing sites.

Props pbearne, flixos90, mukesh27, swissspidy, SergeyBiryukov, joemcgill, adamsilverstein.
Fixes #61103.

Built from https://develop.svn.wordpress.org/trunk@58975


git-svn-id: http://core.svn.wordpress.org/trunk@58371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-09-03 18:19:14 +00:00
..
about.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
admin.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
contribute.php Help/About: Fix the Get Involved tab on Network Admin. 2023-07-25 21:34:27 +00:00
credits.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
edit.php Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty. 2020-05-26 09:37:10 +00:00
freedoms.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
index.php Docs: Update various HelpHub links to avoid unnecessary redirections. 2024-03-08 22:38:08 +00:00
menu.php Administration: Add improved context for add new links. 2023-09-05 19:26:26 +00:00
plugin-editor.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
plugin-install.php Coding Standards: Use strict comparison in wp-admin/network where static strings are involved. 2020-05-24 09:17:09 +00:00
plugins.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
privacy.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
profile.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
settings.php Docs: Update various HelpHub links to avoid unnecessary redirections. 2024-03-19 14:46:15 +00:00
setup.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
site-info.php Bootstrap/Load: Add support for custom ports in multisite site addresses. 2024-05-04 19:25:10 +00:00
site-new.php Docs: Use more specific URLs for a few Network Admin HelpHub links. 2024-05-11 14:38:13 +00:00
site-settings.php Administration: Apply admin notice functions in multisite. 2023-08-17 21:03:19 +00:00
site-themes.php Options, Meta APIs: Explicitly pass $autoload parameter to when potentially adding new options. 2024-09-03 18:19:14 +00:00
site-users.php Administration: Apply admin notice functions in multisite. 2023-08-17 21:03:19 +00:00
sites.php Help/About: Update some help text in the admin area. 2024-06-25 13:34:19 +00:00
theme-editor.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
theme-install.php Coding Standards: Use strict comparison in wp-admin/network where static strings are involved. 2020-05-24 09:17:09 +00:00
themes.php Administration: A11y: Add visible labels in theme UI. 2024-06-13 13:57:10 +00:00
update-core.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
update.php Coding Standards: Use strict type check for in_array() and array_search() where strings are involved. 2020-04-05 03:02:11 +00:00
upgrade.php Docs: Use more specific URLs for a few Network Admin HelpHub links. 2024-05-11 14:38:13 +00:00
user-edit.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
user-new.php Administration: Apply admin notice functions in multisite. 2023-08-17 21:03:19 +00:00
users.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00