Changeset 32778
- Timestamp:
- 06/15/2015 03:31:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r32751 r32778 2938 2938 */ 2939 2939 function wp_ajax_update_plugin() { 2940 global $wp_filesystem; 2941 2940 2942 $plugin = urldecode( $_POST['plugin'] ); 2941 2943 … … 3001 3003 $status['error'] = $result->get_error_message(); 3002 3004 wp_send_json_error( $status ); 3003 } else if ( is_bool( $result ) && ! $result ) { 3005 3006 } else if ( is_bool( $result ) && ! $result ) { 3004 3007 $status['errorCode'] = 'unable_to_connect_to_filesystem'; 3005 3008 $status['error'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); 3009 3010 // Pass through the error from WP_Filesystem if one was raised 3011 if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->get_error_code() ) { 3012 $status['error'] = $wp_filesystem->errors->get_error_message(); 3013 } 3014 3006 3015 wp_send_json_error( $status ); 3016 3007 3017 } 3008 3018 }
Note: See TracChangeset
for help on using the changeset viewer.