From b8d62558a9c9ad6c83bcdadd75660a064e738346 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 25 Feb 2018 20:05:09 +0000 Subject: [PATCH] Docs: Remove `@static` notations from method DocBlocks in `wp-admin/*` classes. This tag has been used in the past, but should no longer be used. Just using the `static` keyword in code is enough for PhpDocumentor on PHP5+ to recognize static variables and methods, and PhpDocumentor will mark them as static. Props birgire. See #42803. git-svn-id: https://develop.svn.wordpress.org/trunk@42745 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-core-upgrader.php | 2 -- src/wp-admin/includes/class-language-pack-upgrader.php | 1 - src/wp-admin/includes/class-wp-internal-pointers.php | 6 ------ src/wp-admin/includes/class-wp-screen.php | 4 ---- src/wp-admin/includes/class-wp-upgrader.php | 2 -- 5 files changed, 15 deletions(-) diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php index 0bbf43303f..eb12301d11 100644 --- a/src/wp-admin/includes/class-core-upgrader.php +++ b/src/wp-admin/includes/class-core-upgrader.php @@ -242,8 +242,6 @@ class Core_Upgrader extends WP_Upgrader { * * @since 3.7.0 * - * @static - * * @param string $offered_ver The offered version, of the format x.y.z. * @return bool True if we should update to the offered version, otherwise false. */ diff --git a/src/wp-admin/includes/class-language-pack-upgrader.php b/src/wp-admin/includes/class-language-pack-upgrader.php index 6eff004b8a..6f8e5d6238 100644 --- a/src/wp-admin/includes/class-language-pack-upgrader.php +++ b/src/wp-admin/includes/class-language-pack-upgrader.php @@ -41,7 +41,6 @@ class Language_Pack_Upgrader extends WP_Upgrader { * Hooked to the {@see 'upgrader_process_complete'} action by default. * * @since 3.7.0 - * @static * * @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is * a Language_Pack_Upgrader instance, the method will bail to diff --git a/src/wp-admin/includes/class-wp-internal-pointers.php b/src/wp-admin/includes/class-wp-internal-pointers.php index 814ba37cc8..4251df3b8a 100644 --- a/src/wp-admin/includes/class-wp-internal-pointers.php +++ b/src/wp-admin/includes/class-wp-internal-pointers.php @@ -24,8 +24,6 @@ final class WP_Internal_Pointers { * Individual pointers (e.g. wp390_widgets) can be disabled using the following: * remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) ); * - * @static - * * @param string $hook_suffix The current admin page. */ public static function enqueue_scripts( $hook_suffix ) { @@ -102,8 +100,6 @@ final class WP_Internal_Pointers { * * @since 3.3.0 * - * @static - * * @param string $pointer_id The pointer ID. * @param string $selector The HTML elements, on which the pointer should be attached. * @param array $args Arguments to be passed to the pointer JS (see wp-pointer.js). @@ -160,8 +156,6 @@ final class WP_Internal_Pointers { * * @since 3.3.0 * - * @static - * * @param int $user_id User ID. */ public static function dismiss_pointers_for_new_users( $user_id ) { diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php index 0277970e0b..afb0928c7c 100644 --- a/src/wp-admin/includes/class-wp-screen.php +++ b/src/wp-admin/includes/class-wp-screen.php @@ -187,8 +187,6 @@ final class WP_Screen { * * @since 3.3.0 * - * @static - * * @global string $hook_suffix * * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. @@ -421,8 +419,6 @@ final class WP_Screen { * * @since 3.3.0 * - * @static - * * @param WP_Screen $screen A screen object. * @param string $help Help text. */ diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index b7e5365f9e..f22f5a8ff6 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -846,7 +846,6 @@ class WP_Upgrader { * Creates a lock using WordPress options. * * @since 4.5.0 - * @static * * @param string $lock_name The name of this unique lock. * @param int $release_timeout Optional. The duration in seconds to respect an existing lock. @@ -892,7 +891,6 @@ class WP_Upgrader { * Releases an upgrader lock. * * @since 4.5.0 - * @static * * @see WP_Upgrader::create_lock() *