This commit is contained in:
thanghv 2020-05-23 00:48:46 +07:00
parent 834965392f
commit f1eb44e98c

View file

@ -573,7 +573,6 @@ class MainWP_Backup {
global $wpdb;
$plugins = array();
$dir = WP_CONTENT_DIR . '/plugins/';
// phpcs:disable
$fh = opendir( $dir );
while ( $entry = readdir( $fh ) ) {
if ( ! is_dir( $dir . $entry ) ) {
@ -585,11 +584,9 @@ class MainWP_Backup {
$plugins[] = $entry;
}
closedir( $fh );
// phpcs:enable
$themes = array();
$dir = WP_CONTENT_DIR . '/themes/';
// phpcs:disable
$fh = opendir( $dir );
while ( $entry = readdir( $fh ) ) {
if ( ! is_dir( $dir . $entry ) ) {
@ -601,7 +598,6 @@ class MainWP_Backup {
$themes[] = $entry;
}
closedir( $fh );
// phpcs:enable
if ( defined( 'MAINWP_CHILD_DEBUG' ) && MAINWP_CHILD_DEBUG ) {
$string = wp_json_encode(