Changeset 55296 for trunk/src/wp-admin/includes/update-core.php
- Timestamp:
- 02/08/2023 03:01:32 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r55258 r55296 1596 1596 * @global array $_old_requests_files Requests files to be preloaded. 1597 1597 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 1598 * @global string $wp_version The WordPress version string. 1598 1599 * 1599 1600 * @param string $to Path to old WordPress installation. 1600 1601 */ 1601 1602 function _preload_old_requests_classes_and_interfaces( $to ) { 1602 global $_old_requests_files, $wp_filesystem; 1603 global $_old_requests_files, $wp_filesystem, $wp_version; 1604 1605 /* 1606 * Requests was introduced in WordPress 4.6. 1607 * 1608 * Skip preloading if the website was previously using 1609 * an earlier version of WordPress. 1610 */ 1611 if ( version_compare( $wp_version, '4.6', '<' ) ) { 1612 return; 1613 } 1603 1614 1604 1615 if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.