Skip to content

Commit cdf3431

Browse files
Docs: Remove @staticvar tags from core.
The tag was supported in phpDocumentor 1.x, but is no longer supported in 2.x and 3.x. Usage of static variables is considered an internal implementation detail and has no information value for someone reading the docs. Props alishanvr, jrf. Fixes #50426. git-svn-id: https://develop.svn.wordpress.org/trunk@48109 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b28cafc commit cdf3431

39 files changed

Lines changed: 2 additions & 175 deletions

src/wp-admin/includes/class-wp-filesystem-ftpext.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ public function rmdir( $path, $recursive = false ) {
581581
}
582582

583583
/**
584-
* @staticvar bool $is_windows
585584
* @param string $line
586585
* @return array
587586
*/

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,6 @@ public function get_column_count() {
11091109
*
11101110
* @since 3.1.0
11111111
*
1112-
* @staticvar int $cb_counter
1113-
*
11141112
* @param bool $with_id Whether to set the ID attribute or not
11151113
*/
11161114
public function print_column_headers( $with_id = true ) {

src/wp-admin/includes/class-wp-ms-themes-list-table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function prepare_items() {
217217
}
218218

219219
/**
220-
* @staticvar string $term
221220
* @param WP_Theme $theme
222221
* @return bool
223222
*/

src/wp-admin/includes/deprecated.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,6 @@ function wp_dashboard_quick_press_output() {
754754
* @since 2.7.0
755755
* @deprecated 3.3.0 Use wp_editor()
756756
* @see wp_editor()
757-
*
758-
* @staticvar int $num
759757
*/
760758
function wp_tiny_mce( $teeny = false, $settings = false ) {
761759
_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );

src/wp-admin/includes/media.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,6 @@ function wp_iframe( $content_func, ...$args ) {
616616
*
617617
* @global int $post_ID
618618
*
619-
* @staticvar int $instance
620-
*
621619
* @param string $editor_id
622620
*/
623621
function media_buttons( $editor_id = 'content' ) {

src/wp-admin/includes/screen.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* @since 2.7.0
1313
*
14-
* @staticvar array $column_headers
15-
*
1614
* @param string|WP_Screen $screen The screen you want the headers for
1715
* @return string[] The column header labels keyed by column ID.
1816
*/

src/wp-admin/includes/template.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,6 @@ function list_meta( $meta ) {
603603
*
604604
* @since 2.5.0
605605
*
606-
* @staticvar string $update_nonce
607-
*
608606
* @param array $entry
609607
* @param int $count
610608
* @return string
@@ -1236,8 +1234,6 @@ function _get_plugin_from_callback( $callback ) {
12361234
*
12371235
* @global array $wp_meta_boxes
12381236
*
1239-
* @staticvar bool $already_sorted
1240-
*
12411237
* @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or
12421238
* add_submenu_page() to create a new screen (and hence screen_id)
12431239
* make sure your menu slug conforms to the limits of sanitize_key()

src/wp-admin/includes/theme.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ function theme_update_available( $theme ) {
162162
*
163163
* @since 3.8.0
164164
*
165-
* @staticvar object $themes_update
166-
*
167165
* @param WP_Theme $theme WP_Theme object.
168166
* @return string|false HTML for the update link, or false if invalid info was passed.
169167
*/

src/wp-admin/includes/widgets.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
126126
*
127127
* @global array $wp_registered_widgets
128128
*
129-
* @staticvar int $i
130-
*
131129
* @param array $params
132130
* @return array
133131
*/

src/wp-admin/update-core.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
* @global string $wp_local_package Locale code of the package.
3232
* @global wpdb $wpdb WordPress database abstraction object.
3333
*
34-
* @staticvar bool $first_pass
35-
*
3634
* @param object $update
3735
*/
3836
function list_core_update( $update ) {

0 commit comments

Comments
 (0)