Changeset 45588 for trunk/tests/phpunit/tests/admin/includesPlugin.php
- Timestamp:
- 07/02/2019 04:43:01 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPlugin.php
r42343 r45588 407 407 408 408 $files_to_move = array(); 409 if ( $mu_plugins = opendir( WPMU_PLUGIN_DIR ) ) { 409 $mu_plugins = opendir( WPMU_PLUGIN_DIR ); 410 if ( $mu_plugins ) { 410 411 while ( false !== $plugin = readdir( $mu_plugins ) ) { 411 412 if ( 0 !== strpos( $plugin, '.' ) ) { … … 433 434 $mu_bu_dir = WP_CONTENT_DIR . '/mu-plugin-backup'; 434 435 $files_to_move = array(); 435 if ( is_dir( $mu_bu_dir ) && $mu_plugins = opendir( $mu_bu_dir ) ) { 436 $mu_plugins = @opendir( $mu_bu_dir ); 437 if ( $mu_plugins ) { 436 438 while ( false !== $plugin = readdir( $mu_plugins ) ) { 437 439 if ( 0 !== strpos( $plugin, '.' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.