// Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230.
remove_all_filters( 'upgrader_pre_install'
);
remove_all_filters( 'upgrader_clear_destination'
);
remove_all_filters( 'upgrader_post_install'
);
remove_all_filters( 'upgrader_source_selection'
);
add_filter( 'upgrader_source_selection', array
( $this, 'check_package'
), 10, 2
);
$this->skin->
header();
// Connect to the filesystem first.
$res =
$this->
fs_connect( array
( WP_CONTENT_DIR, WP_LANG_DIR
) );
if ( !
$res ) { $this->skin->
footer();
return false;
} $results = array
();
$this->update_count =
count( $language_updates );
$this->update_current = 0;
/*
* The filesystem's mkdir() is not recursive. Make sure WP_LANG_DIR exists,
* as we then may need to create a /plugins or /themes directory inside of it.
*/