mirror of
git://develop.git.wordpress.org/
synced 2025-07-16 21:21:17 +02:00
Docs: Correct formatting of some DocBlocks in Plugin_Upgrader
and Theme_Upgrader
per the documentation standards.
See #49400. git-svn-id: https://develop.svn.wordpress.org/trunk@47414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -466,7 +466,7 @@ class Plugin_Upgrader extends WP_Upgrader {
|
|||||||
|
|
||||||
$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
|
$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
|
||||||
|
|
||||||
// Only run if plugin is active
|
// Only run if plugin is active.
|
||||||
if ( ! is_plugin_active( $plugin ) ) {
|
if ( ! is_plugin_active( $plugin ) ) {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
@@ -525,7 +525,8 @@ class Plugin_Upgrader extends WP_Upgrader {
|
|||||||
*
|
*
|
||||||
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
|
||||||
*
|
*
|
||||||
* @param bool|WP_Error $removed Whether the destination was cleared. true on success, WP_Error on failure.
|
* @param bool|WP_Error $removed Whether the destination was cleared.
|
||||||
|
* True on success, WP_Error on failure.
|
||||||
* @param string $local_destination The local package destination.
|
* @param string $local_destination The local package destination.
|
||||||
* @param string $remote_destination The remote package destination.
|
* @param string $remote_destination The remote package destination.
|
||||||
* @param array $plugin Extra arguments passed to hooked filters.
|
* @param array $plugin Extra arguments passed to hooked filters.
|
||||||
|
@@ -571,7 +571,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
|||||||
|
|
||||||
$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
|
$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
|
||||||
|
|
||||||
// Only run if current theme
|
// Only run if current theme.
|
||||||
if ( get_stylesheet() !== $theme ) {
|
if ( get_stylesheet() !== $theme ) {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user