Changeset 58906 for trunk/src/wp-includes/update.php
- Timestamp:
- 08/17/2024 07:52:46 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r58813 r58906 1100 1100 * 1101 1101 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 1102 *1103 * @return void|WP_Error Void on success, or a WP_Error object on failure.1104 1102 */ 1105 1103 function _wp_delete_all_temp_backups() { … … 1115 1113 1116 1114 if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { 1117 return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); 1115 wp_trigger_error( __FUNCTION__, __( 'Could not access filesystem.' ) ); 1116 return; 1118 1117 } 1119 1118 1120 1119 if ( ! $wp_filesystem->wp_content_dir() ) { 1121 return new WP_Error(1122 'fs_no_content_dir',1120 wp_trigger_error( 1121 __FUNCTION__, 1123 1122 /* translators: %s: Directory name. */ 1124 1123 sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' ) 1125 1124 ); 1125 return; 1126 1126 } 1127 1127
Note: See TracChangeset
for help on using the changeset viewer.