Changeset 7209
- Timestamp:
- 03/10/2008 05:13:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r7205 r7209 185 185 $plugin_dir = trailingslashit($plugin_dir); 186 186 // If plugin is in its own directory, recursively delete the directory. 187 if ( '.' != $plugin_dir && $base . PLUGINDIR != $plugin_dir)187 if( ! in_array( $plugin_dir, array('.', trailingslashit($base . PLUGINDIR) ) ) ) 188 188 $deleted = $wp_filesystem->delete($plugin_dir, true); 189 189 else
Note: See TracChangeset
for help on using the changeset viewer.