Changeset 38167 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 07/27/2016 05:09:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r38159 r38167 3516 3516 } 3517 3517 3518 // Check filesystem credentials. `delete_plugins()` will bail otherwise. 3518 // Check filesystem credentials. `delete_theme()` will bail otherwise. 3519 $url = wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ); 3519 3520 ob_start(); 3520 $url = wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ); 3521 if ( false === ( $credentials = request_filesystem_credentials( $url ) ) || ! WP_Filesystem( $credentials ) ) { 3521 $credentials = request_filesystem_credentials( $url ); 3522 ob_end_clean(); 3523 if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { 3522 3524 global $wp_filesystem; 3523 ob_end_clean();3524 3525 3525 3526 $status['errorCode'] = 'unable_to_connect_to_filesystem'; … … 3772 3773 3773 3774 // Check filesystem credentials. `delete_plugins()` will bail otherwise. 3775 $url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&checked[]=' . $plugin, 'bulk-plugins' ); 3774 3776 ob_start(); 3775 $url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&checked[]=' . $plugin, 'bulk-plugins' ); 3776 if ( false === ( $credentials = request_filesystem_credentials( $url ) ) || ! WP_Filesystem( $credentials ) ) { 3777 $credentials = request_filesystem_credentials( $url ); 3778 ob_end_clean(); 3779 if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { 3777 3780 global $wp_filesystem; 3778 ob_end_clean();3779 3781 3780 3782 $status['errorCode'] = 'unable_to_connect_to_filesystem';
Note: See TracChangeset
for help on using the changeset viewer.