plugin updates
This commit is contained in:
@@ -371,8 +371,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
* @since 3.0.0
|
||||
* @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
|
||||
*
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*
|
||||
* @param string[] $themes Array of the theme slugs.
|
||||
* @param array $args {
|
||||
* Optional. Other arguments for upgrading several themes at once. Default empty array.
|
||||
@@ -383,8 +381,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
* @return array[]|false An array of results, or false if unable to connect to the filesystem.
|
||||
*/
|
||||
public function bulk_upgrade( $themes, $args = array() ) {
|
||||
global $wp_version;
|
||||
|
||||
$wp_version = wp_get_wp_version();
|
||||
$defaults = array(
|
||||
'clear_update_cache' => true,
|
||||
);
|
||||
@@ -558,14 +555,14 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*
|
||||
* @param string $source The path to the downloaded package source.
|
||||
* @return string|WP_Error The source as passed, or a WP_Error object on failure.
|
||||
*/
|
||||
public function check_package( $source ) {
|
||||
global $wp_filesystem, $wp_version;
|
||||
global $wp_filesystem;
|
||||
|
||||
$wp_version = wp_get_wp_version();
|
||||
$this->new_theme_data = array();
|
||||
|
||||
if ( is_wp_error( $source ) ) {
|
||||
|
||||
Reference in New Issue
Block a user