Changeset 60428 for branches/6.8/src/wp-admin/includes/upgrade.php
- Timestamp:
- 07/07/2025 08:32:46 PM (12 months ago)
- Location:
- branches/6.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/upgrade.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.8
- Property svn:mergeinfo changed
/trunk merged: 60421-60422
- Property svn:mergeinfo changed
-
branches/6.8/src/wp-admin/includes/upgrade.php
r59861 r60428 882 882 upgrade_670(); 883 883 } 884 885 if ( $wp_current_db_version < 60421 ) { 886 upgrade_682(); 887 } 888 884 889 maybe_disable_link_manager(); 885 890 … … 2440 2445 } 2441 2446 } 2447 2448 /** 2449 * Executes changes made in WordPress 6.8.2. 2450 * 2451 * @ignore 2452 * @since 6.8.2 2453 * 2454 * @global int $wp_current_db_version The old (current) database version. 2455 */ 2456 function upgrade_682() { 2457 global $wp_current_db_version; 2458 2459 if ( $wp_current_db_version < 60421 ) { 2460 // Upgrade Ping-O-Matic and Twingly to use HTTPS. 2461 $ping_sites_value = get_option( 'ping_sites' ); 2462 $ping_sites_value = explode( "\n", $ping_sites_value ); 2463 $ping_sites_value = array_map( 2464 function ( $url ) { 2465 $url = trim( $url ); 2466 $url = sanitize_url( $url ); 2467 if ( 2468 str_ends_with( trailingslashit( $url ), '://rpc.pingomatic.com/' ) 2469 || str_ends_with( trailingslashit( $url ), '://rpc.twingly.com/' ) 2470 ) { 2471 $url = set_url_scheme( $url, 'https' ); 2472 } 2473 return $url; 2474 }, 2475 $ping_sites_value 2476 ); 2477 $ping_sites_value = array_filter( $ping_sites_value ); 2478 $ping_sites_value = implode( "\n", $ping_sites_value ); 2479 update_option( 'ping_sites', $ping_sites_value ); 2480 } 2481 } 2482 2442 2483 /** 2443 2484 * Executes network-level upgrade routines.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)