X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-admin/includes/class-wp-importer.php diff --git a/wp-admin/includes/class-wp-importer.php b/wp-admin/includes/class-wp-importer.php index b54573f6..ee10547d 100644 --- a/wp-admin/includes/class-wp-importer.php +++ b/wp-admin/includes/class-wp-importer.php @@ -6,7 +6,6 @@ class WP_Importer { /** * Class Constructor * - * @return void */ public function __construct() {} @@ -210,7 +209,7 @@ class WP_Importer { */ public function is_user_over_quota() { if ( function_exists( 'upload_is_user_over_quota' ) ) { - if ( upload_is_user_over_quota( 1 ) ) { + if ( upload_is_user_over_quota() ) { echo "Sorry, you have used your upload quota.\n"; return true; } @@ -273,14 +272,14 @@ function get_cli_args( $param, $required = false ) { } $last_arg = $key; - } else if ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) { + } elseif ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) { for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) { $key = $match[1]{$j}; $out[$key] = true; } $last_arg = $key; - } else if ( $last_arg !== null ) { + } elseif ( $last_arg !== null ) { $out[$last_arg] = $args[$i]; } }