diff --git a/plugin.php src/wp-admin/includes/plugin.php
index 7e660f0..0156cc7 100755
old
|
new
|
function get_plugins( $plugin_folder = '' ) { |
261 | 261 | } |
262 | 262 | |
263 | 263 | // Files in wp-content/plugins directory |
264 | | $plugins_dir = @ opendir( $plugin_root ); |
| 264 | $plugins_dir = @opendir( $plugin_root ); |
265 | 265 | $plugin_files = array(); |
266 | 266 | if ( $plugins_dir ) { |
267 | 267 | while ( ( $file = readdir( $plugins_dir ) ) !== false ) { |
… |
… |
function get_plugins( $plugin_folder = '' ) { |
269 | 269 | continue; |
270 | 270 | } |
271 | 271 | if ( is_dir( $plugin_root . '/' . $file ) ) { |
272 | | $plugins_subdir = @ opendir( $plugin_root . '/' . $file ); |
| 272 | $plugins_subdir = @opendir( $plugin_root . '/' . $file ); |
273 | 273 | if ( $plugins_subdir ) { |
274 | 274 | while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) { |
275 | 275 | if ( substr( $subfile, 0, 1 ) == '.' ) { |
… |
… |
function get_mu_plugins() { |
332 | 332 | if ( ! is_dir( WPMU_PLUGIN_DIR ) ) { |
333 | 333 | return $wp_plugins; |
334 | 334 | } |
335 | | if ( $plugins_dir = @ opendir( WPMU_PLUGIN_DIR ) ) { |
| 335 | if ( $plugins_dir = @opendir( WPMU_PLUGIN_DIR ) ) { |
336 | 336 | while ( ( $file = readdir( $plugins_dir ) ) !== false ) { |
337 | 337 | if ( substr( $file, -4 ) == '.php' ) { |
338 | 338 | $plugin_files[] = $file; |
… |
… |
function get_dropins() { |
394 | 394 | $_dropins = _get_dropins(); |
395 | 395 | |
396 | 396 | // These exist in the wp-content directory |
397 | | if ( $plugins_dir = @ opendir( WP_CONTENT_DIR ) ) { |
| 397 | if ( $plugins_dir = @opendir( WP_CONTENT_DIR ) ) { |
398 | 398 | while ( ( $file = readdir( $plugins_dir ) ) !== false ) { |
399 | 399 | if ( isset( $_dropins[ $file ] ) ) { |
400 | 400 | $plugin_files[] = $file; |