Changeset 56342
- Timestamp:
- 08/01/2023 04:08:16 PM (15 months ago)
- Location:
- branches/6.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-admin/includes/class-wp-site-health.php
r56211 r56342 2010 2010 ); 2011 2011 2012 if ( ! $wp_filesystem) {2012 if ( ! function_exists( 'WP_Filesystem' ) ) { 2013 2013 require_once ABSPATH . '/wp-admin/includes/file.php'; 2014 WP_Filesystem(); 2014 } 2015 2016 ob_start(); 2017 $credentials = request_filesystem_credentials( '' ); 2018 ob_end_clean(); 2019 2020 if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { 2021 $result['status'] = 'recommended'; 2022 $result['label'] = __( 'Could not access filesystem' ); 2023 $result['description'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); 2024 return $result; 2015 2025 } 2016 2026 -
branches/6.3/src/wp-includes/update.php
r56050 r56342 1114 1114 global $wp_filesystem; 1115 1115 1116 if ( ! $wp_filesystem) {1116 if ( ! function_exists( 'WP_Filesystem' ) ) { 1117 1117 require_once ABSPATH . '/wp-admin/includes/file.php'; 1118 WP_Filesystem(); 1118 } 1119 1120 ob_start(); 1121 $credentials = request_filesystem_credentials( '' ); 1122 ob_end_clean(); 1123 1124 if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { 1125 return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); 1119 1126 } 1120 1127
Note: See TracChangeset
for help on using the changeset viewer.