mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Add missing @return tag to Language_Pack_Upgrader::check_package().
Synchronize documentation of the `::check_package()` method between `Plugin_Upgrader`, `Theme_Upgrader`, and `Language_Pack_Upgrader`. Props ankitmaru, mukesh27, desrosj. Fixes #51448. git-svn-id: https://develop.svn.wordpress.org/trunk@49091 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -398,10 +398,9 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Check a source package to be sure it contains a plugin.
|
||||
* Checks that the source package contains a valid plugin.
|
||||
*
|
||||
* This function is added to the {@see 'upgrader_source_selection'} filter by
|
||||
* Plugin_Upgrader::install().
|
||||
* Hooked to the {@see 'upgrader_source_selection'} filter by Plugin_Upgrader::install().
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
@@ -409,8 +408,7 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
* @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
|
||||
* if no plugins were found.
|
||||
* @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;
|
||||
|
||||
Reference in New Issue
Block a user