diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index a17c03359a202..005d70cbf610c 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -1599,6 +1599,10 @@ function update_core( $from, $to ) { function _preload_old_requests_classes_and_interfaces( $to ) { global $_old_requests_files, $wp_filesystem; + if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) { + define( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS', true ); + } + foreach ( $_old_requests_files as $name => $file ) { // Skip files that aren't interfaces or classes. if ( is_int( $name ) ) {