Docs: Mark the optional `$upgrader` parameter as such and add a description in the DocBlock for `Language_Pack_Upgrader::async_upgrade()`.

See [32655].

See #30989. See #32246.

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


git-svn-id: http://core.svn.wordpress.org/trunk@34461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-24 14:35:25 +00:00
parent 9405b8b10e
commit 8c0a805273
2 changed files with 9 additions and 6 deletions

View File

@ -1806,16 +1806,17 @@ class Language_Pack_Upgrader extends WP_Upgrader {
public $bulk = true;
/**
* Asynchronously upgrade language packs after other upgrades have been made.
* Asynchronously upgrades language packs after other upgrades have been made.
*
* Hooked to the {@see 'upgrader_process_complete'} action by default.
*
* @since 3.7.0
* @access public
*
* @static
*
* @param false|WP_Upgrader $upgrader
* @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
* a Language_Pack_Upgrader instance, the method will bail to
* avoid recursion. Otherwise unused. Default false.
*/
public static function async_upgrade( $upgrader = false ) {
// Avoid recursion.
@ -1829,8 +1830,10 @@ class Language_Pack_Upgrader extends WP_Upgrader {
return;
}
// Avoid messing with VCS installs, at least for now.
// Noted: this is not the ideal way to accomplish this.
/*
* Avoid messing with VCS installs, at least for now.
* Noted: this is not the ideal way to accomplish this.
*/
$check_vcs = new WP_Automatic_Updater;
if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) {
return;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34496';
$wp_version = '4.4-alpha-34497';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.