Changeset 58975
- Timestamp:
- 09/03/2024 06:17:19 PM (2 weeks ago)
- Location:
- trunk/src
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r55917 r58975 39 39 40 40 flush_rewrite_rules(); 41 update_option( 'db_upgraded', false );41 update_option( 'db_upgraded', false, true ); 42 42 43 43 /** -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r58745 r58975 195 195 update_site_option( 'recently_activated', $recently_activated ); 196 196 } else { 197 update_option( 'recently_activated', $recently_activated );197 update_option( 'recently_activated', $recently_activated, false ); 198 198 } 199 199 -
trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php
r57741 r58975 121 121 // Cache the result for use before `admin_init` (see above). 122 122 if ( $cached !== $state ) { 123 update_option( '_wp_suggested_policy_text_has_changed', $state );123 update_option( '_wp_suggested_policy_text_has_changed', $state, false ); 124 124 } 125 125 -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r58319 r58975 1054 1054 1055 1055 // Update the lock, as by this point we've definitely got a lock, just need to fire the actions. 1056 update_option( $lock_option, time() );1056 update_option( $lock_option, time(), false ); 1057 1057 1058 1058 return true; -
trunk/src/wp-admin/includes/dashboard.php
r58888 r58975 1280 1280 } 1281 1281 1282 update_option( 'dashboard_widget_options', $widget_options );1282 update_option( 'dashboard_widget_options', $widget_options, false ); 1283 1283 1284 1284 $locale = get_user_locale(); -
trunk/src/wp-admin/includes/file.php
r58678 r58975 2473 2473 2474 2474 if ( ! wp_installing() ) { 2475 update_option( 'ftp_credentials', $stored_credentials );2475 update_option( 'ftp_credentials', $stored_credentials, false ); 2476 2476 } 2477 2477 -
trunk/src/wp-admin/includes/misc.php
r58075 r58975 1478 1478 'newemail' => $value, 1479 1479 ); 1480 update_option( 'adminhash', $new_admin_email );1480 update_option( 'adminhash', $new_admin_email, false ); 1481 1481 1482 1482 $switched_locale = switch_to_user_locale( get_current_user_id() ); -
trunk/src/wp-admin/includes/nav-menu.php
r58419 r58975 1485 1485 ); 1486 1486 1487 update_option( 'nav_menu_options', $nav_menu_option );1487 update_option( 'nav_menu_options', $nav_menu_option, false ); 1488 1488 1489 1489 wp_defer_term_counting( false ); -
trunk/src/wp-admin/includes/plugin.php
r58419 r58975 2611 2611 if ( false === $blog_deactivated_plugins ) { 2612 2612 // Option not in database, add an empty array to avoid extra DB queries on subsequent loads. 2613 update_option( 'wp_force_deactivated_plugins', array() );2613 update_option( 'wp_force_deactivated_plugins', array(), false ); 2614 2614 } 2615 2615 … … 2665 2665 2666 2666 // Empty the options. 2667 update_option( 'wp_force_deactivated_plugins', array() );2667 update_option( 'wp_force_deactivated_plugins', array(), false ); 2668 2668 if ( is_multisite() ) { 2669 2669 update_site_option( 'wp_force_deactivated_plugins', array() ); -
trunk/src/wp-admin/includes/update-core.php
r58744 r58975 1764 1764 $deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() ); 1765 1765 $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); 1766 update_option( 'wp_force_deactivated_plugins', $deactivated_plugins );1766 update_option( 'wp_force_deactivated_plugins', $deactivated_plugins, false ); 1767 1767 } 1768 1768 deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true ); -
trunk/src/wp-admin/includes/upgrade.php
r58945 r58975 76 76 77 77 // Freshness of site - in the future, this could get more specific about actions taken, perhaps. 78 update_option( 'fresh_site', 1 );78 update_option( 'fresh_site', 1, false ); 79 79 80 80 if ( $language ) { … … 864 864 } 865 865 866 if ( $wp_current_db_version < 58975 ) { 867 upgrade_670(); 868 } 866 869 maybe_disable_link_manager(); 867 870 … … 990 993 $time_difference = $all_options->time_difference; 991 994 992 $server_time= time() + gmdate( 'Z' );995 $server_time = time() + gmdate( 'Z' ); 993 996 $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS; 994 997 $gmt_time = time(); … … 2398 2401 } 2399 2402 } 2400 2403 /** 2404 * Executes changes made in WordPress 6.7.0. 2405 * 2406 * @ignore 2407 * @since 6.7.0 2408 * 2409 * @global int $wp_current_db_version The old (current) database version. 2410 */ 2411 function upgrade_670() { 2412 global $wp_current_db_version; 2413 2414 if ( $wp_current_db_version < 58975 ) { 2415 $options = array( 2416 'recently_activated', 2417 '_wp_suggested_policy_text_has_changed', 2418 'dashboard_widget_options', 2419 'ftp_credentials', 2420 'adminhash', 2421 'nav_menu_options', 2422 'wp_force_deactivated_plugins', 2423 'delete_blog_hash', 2424 'allowedthemes', 2425 'recovery_keys', 2426 'https_detection_errors', 2427 'fresh_site', 2428 ); 2429 2430 wp_set_options_autoload( $options, false ); 2431 } 2432 } 2401 2433 /** 2402 2434 * Executes network-level upgrade routines. -
trunk/src/wp-admin/ms-delete-site.php
r54840 r58975 49 49 50 50 $hash = wp_generate_password( 20, false ); 51 update_option( 'delete_blog_hash', $hash );51 update_option( 'delete_blog_hash', $hash, false ); 52 52 53 53 $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); -
trunk/src/wp-admin/network/site-themes.php
r58405 r58975 144 144 } 145 145 146 update_option( 'allowedthemes', $allowed_themes );146 update_option( 'allowedthemes', $allowed_themes, false ); 147 147 restore_current_blog(); 148 148 -
trunk/src/wp-admin/plugins.php
r58879 r58975 72 72 $recent = (array) get_option( 'recently_activated' ); 73 73 unset( $recent[ $plugin ] ); 74 update_option( 'recently_activated', $recent );74 update_option( 'recently_activated', $recent, false ); 75 75 } else { 76 76 $recent = (array) get_site_option( 'recently_activated' ); … … 137 137 138 138 if ( ! is_network_admin() ) { 139 update_option( 'recently_activated', $recent );139 update_option( 'recently_activated', $recent, false ); 140 140 } else { 141 141 update_site_option( 'recently_activated', $recent ); … … 212 212 213 213 if ( ! is_network_admin() ) { 214 update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ) );214 update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ), false ); 215 215 } else { 216 216 update_site_option( 'recently_activated', array( $plugin => time() ) + (array) get_site_option( 'recently_activated' ) ); … … 259 259 260 260 if ( ! is_network_admin() ) { 261 update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ) );261 update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ), false ); 262 262 } else { 263 263 update_site_option( 'recently_activated', $deactivated + (array) get_site_option( 'recently_activated' ) ); … … 437 437 case 'clear-recent-list': 438 438 if ( ! is_network_admin() ) { 439 update_option( 'recently_activated', array() );439 update_option( 'recently_activated', array(), false ); 440 440 } else { 441 441 update_site_option( 'recently_activated', array() ); -
trunk/src/wp-includes/class-wp-paused-extensions-storage.php
r57644 r58975 73 73 $paused_extensions[ $this->type ][ $extension ] = $error; 74 74 75 return update_option( $option_name, $paused_extensions );75 return update_option( $option_name, $paused_extensions, false ); 76 76 } 77 77 … … 113 113 } 114 114 115 return update_option( $option_name, $paused_extensions );115 return update_option( $option_name, $paused_extensions, false ); 116 116 } 117 117 … … 191 191 } 192 192 193 return update_option( $option_name, $paused_extensions );193 return update_option( $option_name, $paused_extensions, false ); 194 194 } 195 195 -
trunk/src/wp-includes/class-wp-recovery-mode-key-service.php
r57226 r58975 188 188 */ 189 189 private function update_keys( array $keys ) { 190 return update_option( $this->option_name, $keys );190 return update_option( $this->option_name, $keys, false ); 191 191 } 192 192 } -
trunk/src/wp-includes/class-wp-roles.php
r56321 r58975 166 166 ); 167 167 if ( $this->use_db ) { 168 update_option( $this->role_key, $this->roles );168 update_option( $this->role_key, $this->roles, true ); 169 169 } 170 170 $this->role_objects[ $role ] = new WP_Role( $role, $capabilities ); -
trunk/src/wp-includes/class-wp-theme.php
r58025 r58975 1758 1758 if ( is_admin() && $allowed_themes[ $blog_id ] ) { 1759 1759 if ( $current ) { 1760 update_option( 'allowedthemes', $allowed_themes[ $blog_id ] );1760 update_option( 'allowedthemes', $allowed_themes[ $blog_id ], false ); 1761 1761 delete_option( 'allowed_themes' ); 1762 1762 } else { 1763 1763 switch_to_blog( $blog_id ); 1764 update_option( 'allowedthemes', $allowed_themes[ $blog_id ] );1764 update_option( 'allowedthemes', $allowed_themes[ $blog_id ], false ); 1765 1765 delete_option( 'allowed_themes' ); 1766 1766 restore_current_blog(); -
trunk/src/wp-includes/cron.php
r58075 r58975 1241 1241 $cron['version'] = 2; 1242 1242 1243 $result = update_option( 'cron', $cron );1243 $result = update_option( 'cron', $cron, true ); 1244 1244 1245 1245 if ( $wp_error && ! $result ) { … … 1281 1281 $new_cron['version'] = 2; 1282 1282 1283 update_option( 'cron', $new_cron );1283 update_option( 'cron', $new_cron, true ); 1284 1284 1285 1285 return $new_cron; -
trunk/src/wp-includes/deprecated.php
r58951 r58975 6003 6003 $support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null ); 6004 6004 if ( is_wp_error( $support_errors ) ) { 6005 update_option( 'https_detection_errors', $support_errors->errors );6005 update_option( 'https_detection_errors', $support_errors->errors, false ); 6006 6006 return; 6007 6007 } -
trunk/src/wp-includes/functions.php
r58923 r58975 4706 4706 */ 4707 4707 function _delete_option_fresh_site() { 4708 update_option( 'fresh_site', '0' );4708 update_option( 'fresh_site', '0', false ); 4709 4709 } 4710 4710 -
trunk/src/wp-includes/ms-functions.php
r57108 r58975 2022 2022 function update_posts_count( $deprecated = '' ) { 2023 2023 global $wpdb; 2024 update_option( 'post_count', (int) $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_status = 'publish' and post_type = 'post'" ) );2024 update_option( 'post_count', (int) $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->posts} WHERE post_status = 'publish' and post_type = 'post'" ), true ); 2025 2025 } 2026 2026 -
trunk/src/wp-includes/theme.php
r58409 r58975 787 787 788 788 $nav_menu_locations = get_theme_mod( 'nav_menu_locations' ); 789 update_option( 'theme_switch_menu_locations', $nav_menu_locations );789 update_option( 'theme_switch_menu_locations', $nav_menu_locations, true ); 790 790 791 791 if ( func_num_args() > 1 ) { -
trunk/src/wp-includes/version.php
r58576 r58975 24 24 * @global int $wp_db_version 25 25 */ 26 $wp_db_version = 5 7155;26 $wp_db_version = 58975; 27 27 28 28 /**
Note: See TracChangeset
for help on using the changeset viewer.