Upgrader: Fix the order of arguements passed to wp_parse_args() in the Upgrader, introduced with [25272]. See #22704

Built from https://develop.svn.wordpress.org/trunk@25495


git-svn-id: http://core.svn.wordpress.org/trunk@25416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-09-19 08:40:10 +00:00
parent 98d5c50e5f
commit 340e129deb
1 changed files with 7 additions and 7 deletions

View File

@ -430,7 +430,7 @@ class Plugin_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->install_strings();
@ -463,7 +463,7 @@ class Plugin_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->upgrade_strings();
@ -514,7 +514,7 @@ class Plugin_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->bulk = true;
@ -802,7 +802,7 @@ class Theme_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->install_strings();
@ -836,7 +836,7 @@ class Theme_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->upgrade_strings();
@ -886,7 +886,7 @@ class Theme_Upgrader extends WP_Upgrader {
$defaults = array(
'clear_update_cache' => true,
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->bulk = true;
@ -1096,7 +1096,7 @@ class Core_Upgrader extends WP_Upgrader {
$defaults = array(
);
$parsed_args = wp_parse_args( $defaults, $args );
$parsed_args = wp_parse_args( $args, $defaults );
$this->init();
$this->upgrade_strings();