From ada01be7605af8c74213c2e8a914cdf822608c97 Mon Sep 17 00:00:00 2001
From: Ali Shan <alishanvr@gmail.com>
Date: Sat, 20 Jun 2020 04:21:24 +0500
Subject: [PATCH] @staticvar removed
---
wp-admin/includes/class-wp-filesystem-ftpext.php | 1 -
wp-admin/includes/class-wp-list-table.php | 2 --
wp-admin/includes/class-wp-ms-themes-list-table.php | 1 -
wp-admin/includes/deprecated.php | 2 --
wp-admin/includes/media.php | 2 --
wp-admin/includes/screen.php | 2 --
wp-admin/includes/template.php | 4 ----
wp-admin/includes/theme.php | 2 --
wp-admin/includes/widgets.php | 2 --
wp-admin/update-core.php | 2 --
10 files changed, 20 deletions(-)
diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php
index d165b2bc3e..cddbd631a2 100644
|
a
|
b
|
class WP_Filesystem_FTPext extends WP_Filesystem_Base { |
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | /** |
| 584 | | * @staticvar bool $is_windows |
| 585 | 584 | * @param string $line |
| 586 | 585 | * @return array |
| 587 | 586 | */ |
diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php
index 7f9ab03c5b..4ecb927e64 100644
|
a
|
b
|
class WP_List_Table { |
| 1109 | 1109 | * |
| 1110 | 1110 | * @since 3.1.0 |
| 1111 | 1111 | * |
| 1112 | | * @staticvar int $cb_counter |
| 1113 | | * |
| 1114 | 1112 | * @param bool $with_id Whether to set the id attribute or not |
| 1115 | 1113 | */ |
| 1116 | 1114 | public function print_column_headers( $with_id = true ) { |
diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php
index 96b738608d..d5b285e619 100644
|
a
|
b
|
class WP_MS_Themes_List_Table extends WP_List_Table { |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | | * @staticvar string $term |
| 221 | 220 | * @param WP_Theme $theme |
| 222 | 221 | * @return bool |
| 223 | 222 | */ |
diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php
index 89d7eec437..e4b84b8e36 100644
|
a
|
b
|
function wp_dashboard_quick_press_output() { |
| 754 | 754 | * @since 2.7.0 |
| 755 | 755 | * @deprecated 3.3.0 Use wp_editor() |
| 756 | 756 | * @see wp_editor() |
| 757 | | * |
| 758 | | * @staticvar int $num |
| 759 | 757 | */ |
| 760 | 758 | function wp_tiny_mce( $teeny = false, $settings = false ) { |
| 761 | 759 | _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); |
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index c02cdcdb73..9ee7556a92 100644
|
a
|
b
|
function wp_iframe( $content_func, ...$args ) { |
| 616 | 616 | * |
| 617 | 617 | * @global int $post_ID |
| 618 | 618 | * |
| 619 | | * @staticvar int $instance |
| 620 | | * |
| 621 | 619 | * @param string $editor_id |
| 622 | 620 | */ |
| 623 | 621 | function media_buttons( $editor_id = 'content' ) { |
diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php
index 345bc8b4f2..f675302c75 100644
|
a
|
b
|
|
| 11 | 11 | * |
| 12 | 12 | * @since 2.7.0 |
| 13 | 13 | * |
| 14 | | * @staticvar array $column_headers |
| 15 | | * |
| 16 | 14 | * @param string|WP_Screen $screen The screen you want the headers for |
| 17 | 15 | * @return string[] The column header labels keyed by column ID. |
| 18 | 16 | */ |
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 5641f061a2..74352dfad5 100644
|
a
|
b
|
function list_meta( $meta ) { |
| 603 | 603 | * |
| 604 | 604 | * @since 2.5.0 |
| 605 | 605 | * |
| 606 | | * @staticvar string $update_nonce |
| 607 | | * |
| 608 | 606 | * @param array $entry |
| 609 | 607 | * @param int $count |
| 610 | 608 | * @return string |
| … |
… |
function _get_plugin_from_callback( $callback ) { |
| 1236 | 1234 | * |
| 1237 | 1235 | * @global array $wp_meta_boxes |
| 1238 | 1236 | * |
| 1239 | | * @staticvar bool $already_sorted |
| 1240 | | * |
| 1241 | 1237 | * @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or |
| 1242 | 1238 | * add_submenu_page() to create a new screen (and hence screen_id) |
| 1243 | 1239 | * make sure your menu slug conforms to the limits of sanitize_key() |
diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php
index b6e44ad9ae..1839c939cb 100644
|
a
|
b
|
function theme_update_available( $theme ) { |
| 162 | 162 | * |
| 163 | 163 | * @since 3.8.0 |
| 164 | 164 | * |
| 165 | | * @staticvar object $themes_update |
| 166 | | * |
| 167 | 165 | * @param WP_Theme $theme WP_Theme object. |
| 168 | 166 | * @return string|false HTML for the update link, or false if invalid info was passed. |
| 169 | 167 | */ |
diff --git a/wp-admin/includes/widgets.php b/wp-admin/includes/widgets.php
index d3bdf2032c..a74896cc54 100644
|
a
|
b
|
function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { |
| 126 | 126 | * |
| 127 | 127 | * @global array $wp_registered_widgets |
| 128 | 128 | * |
| 129 | | * @staticvar int $i |
| 130 | | * |
| 131 | 129 | * @param array $params |
| 132 | 130 | * @return array |
| 133 | 131 | */ |
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 1af08bb9b2..0c4391ea01 100644
|
a
|
b
|
if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes' |
| 31 | 31 | * @global string $wp_local_package Locale code of the package. |
| 32 | 32 | * @global wpdb $wpdb WordPress database abstraction object. |
| 33 | 33 | * |
| 34 | | * @staticvar bool $first_pass |
| 35 | | * |
| 36 | 34 | * @param object $update |
| 37 | 35 | */ |
| 38 | 36 | function list_core_update( $update ) { |