Upgrades a language pack.
Parameters
$update
string|falseoptional- Whether an update offer is available.
Default:
false
$args
arrayoptional- Other optional arguments, see Language_Pack_Upgrader::bulk_upgrade().
Default:
array()
Source
public function upgrade( $update = false, $args = array() ) {
if ( $update ) {
$update = array( $update );
}
$results = $this->bulk_upgrade( $update, $args );
if ( ! is_array( $results ) ) {
return $results;
}
return $results[0];
}
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.