From 1ad59af2fbfdea3a2fa5825af44e5efb374ae59e Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Thu, 23 Apr 2020 15:06:40 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit b588a4c [ci skip] [skip ci] --- class/class-mainwp-clone.php | 2 +- class/class-mainwp-helper.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/class-mainwp-clone.php b/class/class-mainwp-clone.php index 23b740e..8cb5ea6 100644 --- a/class/class-mainwp-clone.php +++ b/class/class-mainwp-clone.php @@ -374,7 +374,7 @@ class MainWP_Clone { $quick_dirs = array(); $quick_dirs[] = array( __( 'Site Root', 'mainwp-child' ), ABSPATH ); $quick_dirs[] = array( __( 'Backup', 'mainwp-child' ), $backup_dir ); - $uploads = wp_upload_dir(); + $uploads = wp_upload_dir(); if ( $uploads && false === $uploads['error'] ) { $quick_dirs[] = array( __( 'Uploads Folder', 'mainwp-child' ), $uploads['path'] ); } diff --git a/class/class-mainwp-helper.php b/class/class-mainwp-helper.php index 6b31c06..1f99b8e 100644 --- a/class/class-mainwp-helper.php +++ b/class/class-mainwp-helper.php @@ -424,8 +424,8 @@ class MainWP_Helper { } else { $length = 12; $include_standard_special_chars = false; - $random_password = wp_generate_password( $length, $include_standard_special_chars ); - $post_author = wp_create_user( $post_author, $random_password, $post_author . '@asdf.com' ); + $random_password = wp_generate_password( $length, $include_standard_special_chars ); + $post_author = wp_create_user( $post_author, $random_password, $post_author . '@asdf.com' ); } } } elseif ( isset( $new_post['custom_post_author'] ) && ! empty( $new_post['custom_post_author'] ) ) {