Archived
Updates
This commit is contained in:
1 parent
70d2335bba
commit
7428b67da5
1086 files changed
+94145
-59082
No files matched your search
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user