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.
Built from https://develop.svn.wordpress.org/trunk@48109


git-svn-id: http://core.svn.wordpress.org/trunk@47878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-20 12:40:12 +00:00
parent 65724cf380
commit b16368c268
40 changed files with 3 additions and 176 deletions

View File

@ -581,7 +581,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
} }
/** /**
* @staticvar bool $is_windows
* @param string $line * @param string $line
* @return array * @return array
*/ */

View File

@ -1109,8 +1109,6 @@ class WP_List_Table {
* *
* @since 3.1.0 * @since 3.1.0
* *
* @staticvar int $cb_counter
*
* @param bool $with_id Whether to set the ID attribute or not * @param bool $with_id Whether to set the ID attribute or not
*/ */
public function print_column_headers( $with_id = true ) { public function print_column_headers( $with_id = true ) {

View File

@ -217,7 +217,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
} }
/** /**
* @staticvar string $term
* @param WP_Theme $theme * @param WP_Theme $theme
* @return bool * @return bool
*/ */

View File

@ -754,8 +754,6 @@ function wp_dashboard_quick_press_output() {
* @since 2.7.0 * @since 2.7.0
* @deprecated 3.3.0 Use wp_editor() * @deprecated 3.3.0 Use wp_editor()
* @see wp_editor() * @see wp_editor()
*
* @staticvar int $num
*/ */
function wp_tiny_mce( $teeny = false, $settings = false ) { function wp_tiny_mce( $teeny = false, $settings = false ) {
_deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );

View File

@ -616,8 +616,6 @@ function wp_iframe( $content_func, ...$args ) {
* *
* @global int $post_ID * @global int $post_ID
* *
* @staticvar int $instance
*
* @param string $editor_id * @param string $editor_id
*/ */
function media_buttons( $editor_id = 'content' ) { function media_buttons( $editor_id = 'content' ) {

View File

@ -11,8 +11,6 @@
* *
* @since 2.7.0 * @since 2.7.0
* *
* @staticvar array $column_headers
*
* @param string|WP_Screen $screen The screen you want the headers for * @param string|WP_Screen $screen The screen you want the headers for
* @return string[] The column header labels keyed by column ID. * @return string[] The column header labels keyed by column ID.
*/ */

View File

@ -603,8 +603,6 @@ function list_meta( $meta ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @staticvar string $update_nonce
*
* @param array $entry * @param array $entry
* @param int $count * @param int $count
* @return string * @return string
@ -1236,8 +1234,6 @@ function _get_plugin_from_callback( $callback ) {
* *
* @global array $wp_meta_boxes * @global array $wp_meta_boxes
* *
* @staticvar bool $already_sorted
*
* @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or * @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or
* add_submenu_page() to create a new screen (and hence screen_id) * add_submenu_page() to create a new screen (and hence screen_id)
* make sure your menu slug conforms to the limits of sanitize_key() * make sure your menu slug conforms to the limits of sanitize_key()

View File

@ -162,8 +162,6 @@ function theme_update_available( $theme ) {
* *
* @since 3.8.0 * @since 3.8.0
* *
* @staticvar object $themes_update
*
* @param WP_Theme $theme WP_Theme object. * @param WP_Theme $theme WP_Theme object.
* @return string|false HTML for the update link, or false if invalid info was passed. * @return string|false HTML for the update link, or false if invalid info was passed.
*/ */

View File

@ -126,8 +126,6 @@ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
* *
* @global array $wp_registered_widgets * @global array $wp_registered_widgets
* *
* @staticvar int $i
*
* @param array $params * @param array $params
* @return array * @return array
*/ */

View File

@ -31,8 +31,6 @@ if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes'
* @global string $wp_local_package Locale code of the package. * @global string $wp_local_package Locale code of the package.
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* *
* @staticvar bool $first_pass
*
* @param object $update * @param object $update
*/ */
function list_core_update( $update ) { function list_core_update( $update ) {

View File

@ -628,8 +628,6 @@ add_filter( 'widget_tag_cloud_args', 'twentyseventeen_widget_tag_cloud_args' );
* *
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead. * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
* *
* @staticvar int $id_counter
*
* @param string $prefix Prefix for the returned ID. * @param string $prefix Prefix for the returned ID.
* @return string Unique ID. * @return string Unique ID.
*/ */

View File

@ -781,8 +781,6 @@ function twentytwenty_toggle_duration() {
* *
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead. * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
* *
* @staticvar int $id_counter
*
* @param string $prefix Prefix for the returned ID. * @param string $prefix Prefix for the returned ID.
* @return string Unique ID. * @return string Unique ID.
*/ */

View File

@ -70,8 +70,6 @@ function _wp_admin_bar_init() {
* @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback. * @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback.
* *
* @global WP_Admin_Bar $wp_admin_bar * @global WP_Admin_Bar $wp_admin_bar
*
* @staticvar bool $rendered
*/ */
function wp_admin_bar_render() { function wp_admin_bar_render() {
global $wp_admin_bar; global $wp_admin_bar;

View File

@ -559,8 +559,6 @@ class WP_Http {
* @deprecated 5.1.0 Use WP_Http::request() * @deprecated 5.1.0 Use WP_Http::request()
* @see WP_Http::request() * @see WP_Http::request()
* *
* @staticvar array $transports
*
* @param string $url URL to Request. * @param string $url URL to Request.
* @param array $args Request arguments. * @param array $args Request arguments.
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
@ -850,9 +848,6 @@ class WP_Http {
* @link https://core.trac.wordpress.org/ticket/8927 Allow preventing external requests. * @link https://core.trac.wordpress.org/ticket/8927 Allow preventing external requests.
* @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS
* *
* @staticvar array|null $accessible_hosts
* @staticvar array $wildcard_regex
*
* @param string $uri URI of url. * @param string $uri URI of url.
* @return bool True to block, false to allow. * @return bool True to block, false to allow.
*/ */

View File

@ -173,8 +173,6 @@ final class WP_Customize_Widgets {
* *
* @since 4.2.0 * @since 4.2.0
* *
* @staticvar array $cache
*
* @param string $setting_id Setting ID. * @param string $setting_id Setting ID.
* @return string|void Setting type. * @return string|void Setting type.
*/ */
@ -936,7 +934,6 @@ final class WP_Customize_Widgets {
* *
* @global array $wp_registered_widgets * @global array $wp_registered_widgets
* @global array $wp_registered_widget_controls * @global array $wp_registered_widget_controls
* @staticvar array $available_widgets
* *
* @see wp_list_widgets() * @see wp_list_widgets()
* *

View File

@ -160,9 +160,6 @@ class WP_HTTP_Proxy {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @staticvar array|null $bypass_hosts
* @staticvar array $wildcard_regex
*
* @param string $uri URI to check. * @param string $uri URI to check.
* @return bool True, to send through the proxy and false if, the proxy should not be used. * @return bool True, to send through the proxy and false if, the proxy should not be used.
*/ */

View File

@ -1786,8 +1786,6 @@ class WP_Rewrite {
* *
* @since 2.0.1 * @since 2.0.1
* *
* @staticvar bool $do_hard_later
*
* @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard). * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
*/ */
public function flush_rules( $hard = true ) { public function flush_rules( $hard = true ) {

View File

@ -453,8 +453,6 @@ final class WP_Theme implements ArrayAccess {
/** /**
* __isset() magic method for properties formerly returned by current_theme_info() * __isset() magic method for properties formerly returned by current_theme_info()
* *
* @staticvar array $properties
*
* @since 3.4.0 * @since 3.4.0
* *
* @param string $offset Property to check if set. * @param string $offset Property to check if set.
@ -547,8 +545,6 @@ final class WP_Theme implements ArrayAccess {
/** /**
* Method to implement ArrayAccess for keys formerly returned by get_themes() * Method to implement ArrayAccess for keys formerly returned by get_themes()
* *
* @staticvar array $keys
*
* @since 3.4.0 * @since 3.4.0
* *
* @param mixed $offset * @param mixed $offset
@ -810,9 +806,6 @@ final class WP_Theme implements ArrayAccess {
* @since 3.4.0 * @since 3.4.0
* @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers. * @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers.
* *
* @staticvar array $header_tags
* @staticvar array $header_tags_with_a
*
* @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version', * @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version',
* 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'. * 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'.
* @param string $value Value to sanitize. * @param string $value Value to sanitize.
@ -876,8 +869,6 @@ final class WP_Theme implements ArrayAccess {
* *
* @since 3.4.0 * @since 3.4.0
* *
* @staticvar string $comma
*
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
* @param string|array $value Value to mark up. An array for Tags header, string otherwise. * @param string|array $value Value to mark up. An array for Tags header, string otherwise.
* @param string $translate Whether the header has been translated. * @param string $translate Whether the header has been translated.
@ -922,8 +913,6 @@ final class WP_Theme implements ArrayAccess {
* *
* @since 3.4.0 * @since 3.4.0
* *
* @staticvar array $tags_list
*
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
* @param string|array $value Value to translate. An array for Tags header, string otherwise. * @param string|array $value Value to translate. An array for Tags header, string otherwise.
* @return string|array Translated value. An array for Tags header, string otherwise. * @return string|array Translated value. An array for Tags header, string otherwise.
@ -1473,8 +1462,6 @@ final class WP_Theme implements ArrayAccess {
* *
* @since 3.4.0 * @since 3.4.0
* *
* @staticvar array $allowed_themes
*
* @return string[] Array of stylesheet names. * @return string[] Array of stylesheet names.
*/ */
public static function get_allowed_on_network() { public static function get_allowed_on_network() {
@ -1500,8 +1487,6 @@ final class WP_Theme implements ArrayAccess {
* *
* @since 3.4.0 * @since 3.4.0
* *
* @staticvar array $allowed_themes
*
* @param int $blog_id Optional. ID of the site. Defaults to the current site. * @param int $blog_id Optional. ID of the site. Defaults to the current site.
* @return string[] Array of stylesheet names. * @return string[] Array of stylesheet names.
*/ */

View File

@ -2466,8 +2466,6 @@ function wp_update_comment( $commentarr ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @staticvar bool $_defer
*
* @param bool $defer * @param bool $defer
* @return bool * @return bool
*/ */
@ -2500,8 +2498,6 @@ function wp_defer_comment_counting( $defer = null ) {
* *
* @see wp_update_comment_count_now() For what could cause a false return value * @see wp_update_comment_count_now() For what could cause a false return value
* *
* @staticvar array $_deferred
*
* @param int|null $post_id Post ID. * @param int|null $post_id Post ID.
* @param bool $do_deferred Optional. Whether to process previously deferred * @param bool $do_deferred Optional. Whether to process previously deferred
* post comment counts. Default false. * post comment counts. Default false.

View File

@ -20,8 +20,6 @@ if ( ! function_exists( '_' ) ) {
* @since 4.2.2 * @since 4.2.2
* @access private * @access private
* *
* @staticvar string $utf8_pcre
*
* @param bool $set - Used for testing only * @param bool $set - Used for testing only
* null : default - get PCRE/u capability * null : default - get PCRE/u capability
* false : Used for testing - return false for future calls to this function * false : Used for testing - return false for future calls to this function

View File

@ -114,8 +114,6 @@ function wp_oembed_get( $url, $args = '' ) {
* @since 2.9.0 * @since 2.9.0
* @access private * @access private
* *
* @staticvar WP_oEmbed $wp_oembed
*
* @return WP_oEmbed object. * @return WP_oEmbed object.
*/ */
function _wp_oembed_get_object() { function _wp_oembed_get_object() {

View File

@ -29,23 +29,6 @@
* *
* @global array $wp_cockneyreplace Array of formatted entities for certain common phrases. * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases.
* @global array $shortcode_tags * @global array $shortcode_tags
* @staticvar array $static_characters
* @staticvar array $static_replacements
* @staticvar array $dynamic_characters
* @staticvar array $dynamic_replacements
* @staticvar array $default_no_texturize_tags
* @staticvar array $default_no_texturize_shortcodes
* @staticvar bool $run_texturize
* @staticvar string $apos
* @staticvar string $prime
* @staticvar string $double_prime
* @staticvar string $opening_quote
* @staticvar string $closing_quote
* @staticvar string $opening_single_quote
* @staticvar string $closing_single_quote
* @staticvar string $open_q_flag
* @staticvar string $open_sq_flag
* @staticvar string $apos_flag
* *
* @param string $text The text to be formatted. * @param string $text The text to be formatted.
* @param bool $reset Set to true for unit testing. Translated patterns will reset. * @param bool $reset Set to true for unit testing. Translated patterns will reset.
@ -633,8 +616,6 @@ function wp_html_split( $input ) {
* *
* @since 4.4.0 * @since 4.4.0
* *
* @staticvar string $regex
*
* @return string The regular expression * @return string The regular expression
*/ */
function get_html_split_regex() { function get_html_split_regex() {
@ -694,8 +675,6 @@ function get_html_split_regex() {
* @internal This function will be removed in 4.5.0 per Shortcode API Roadmap. * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap.
* @since 4.4.0 * @since 4.4.0
* *
* @staticvar string $html_regex
*
* @param string $shortcode_regex The result from _get_wptexturize_shortcode_regex(). Optional. * @param string $shortcode_regex The result from _get_wptexturize_shortcode_regex(). Optional.
* @return string The regular expression * @return string The regular expression
*/ */
@ -938,8 +917,6 @@ function seems_utf8( $str ) {
* @since 5.5.0 `$quote_style` also accepts `ENT_XML1`. * @since 5.5.0 `$quote_style` also accepts `ENT_XML1`.
* @access private * @access private
* *
* @staticvar string $_charset
*
* @param string $string The text which is to be encoded. * @param string $string The text which is to be encoded.
* @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT, * @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT,
* both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. * both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES.
@ -1112,9 +1089,6 @@ function wp_specialchars_decode( $string, $quote_style = ENT_NOQUOTES ) {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @staticvar bool $is_utf8
* @staticvar bool $utf8_pcre
*
* @param string $string The text which is to be checked. * @param string $string The text which is to be checked.
* @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default is false. * @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default is false.
* @return string The checked text. * @return string The checked text.
@ -5445,8 +5419,6 @@ function wp_basename( $path, $suffix = '' ) {
* *
* @since 3.0.0 * @since 3.0.0
* *
* @staticvar string|false $dblq
*
* @param string $text The text to be modified. * @param string $text The text to be modified.
* @return string The modified text. * @return string The modified text.
*/ */
@ -5619,8 +5591,6 @@ function get_url_in_content( $content ) {
* *
* @since 4.0.0 * @since 4.0.0
* *
* @staticvar string $spaces
*
* @return string The spaces regexp. * @return string The spaces regexp.
*/ */
function wp_spaces_regexp() { function wp_spaces_regexp() {
@ -5649,8 +5619,6 @@ function wp_spaces_regexp() {
* Print the important emoji-related styles. * Print the important emoji-related styles.
* *
* @since 4.2.0 * @since 4.2.0
*
* @staticvar bool $printed
*/ */
function print_emoji_styles() { function print_emoji_styles() {
static $printed = false; static $printed = false;
@ -5684,7 +5652,6 @@ img.emoji {
* Print the inline Emoji detection script if it is not already printed. * Print the inline Emoji detection script if it is not already printed.
* *
* @since 4.2.0 * @since 4.2.0
* @staticvar bool $printed
*/ */
function print_emoji_detection_script() { function print_emoji_detection_script() {
static $printed = false; static $printed = false;

View File

@ -2125,8 +2125,6 @@ function wp_normalize_path( $path ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @staticvar string $temp
*
* @return string Writable temporary directory. * @return string Writable temporary directory.
*/ */
function get_temp_dir() { function get_temp_dir() {
@ -2260,9 +2258,6 @@ function wp_get_upload_dir() {
* @since 2.0.0 * @since 2.0.0
* @uses _wp_upload_dir() * @uses _wp_upload_dir()
* *
* @staticvar array $cache
* @staticvar array $tested_paths
*
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
* @param bool $create_dir Optional. Whether to check and create the uploads directory. * @param bool $create_dir Optional. Whether to check and create the uploads directory.
* Default true for backward compatibility. * Default true for backward compatibility.
@ -3985,8 +3980,6 @@ function _wp_json_sanity_check( $data, $depth ) {
* *
* @see _wp_json_sanity_check() * @see _wp_json_sanity_check()
* *
* @staticvar bool $use_mb
*
* @param string $string The string which is to be converted. * @param string $string The string which is to be converted.
* @return string The checked string. * @return string The checked string.
*/ */
@ -5349,8 +5342,6 @@ function validate_file( $file, $allowed_files = array() ) {
* *
* @since 2.6.0 * @since 2.6.0
* *
* @staticvar bool $forced
*
* @param string|bool $force Optional. Whether to force SSL in admin screens. Default null. * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
* @return bool True if forced, false if not forced. * @return bool True if forced, false if not forced.
*/ */
@ -5427,8 +5418,6 @@ function wp_guess_url() {
* *
* @since 3.3.0 * @since 3.3.0
* *
* @staticvar bool $_suspend
*
* @param bool $suspend Optional. Suspends additions if true, re-enables them if false. * @param bool $suspend Optional. Suspends additions if true, re-enables them if false.
* @return bool The current suspend setting * @return bool The current suspend setting
*/ */
@ -5578,8 +5567,6 @@ function get_main_network_id() {
* *
* @since 3.0.0 * @since 3.0.0
* *
* @staticvar bool $global_terms
*
* @return bool True if multisite and global terms enabled. * @return bool True if multisite and global terms enabled.
*/ */
function global_terms_enabled() { function global_terms_enabled() {
@ -5719,9 +5706,6 @@ function _wp_timezone_choice_usort_callback( $a, $b ) {
* @since 2.9.0 * @since 2.9.0
* @since 4.7.0 Added the `$locale` parameter. * @since 4.7.0 Added the `$locale` parameter.
* *
* @staticvar bool $mo_loaded
* @staticvar string $locale_loaded
*
* @param string $selected_zone Selected timezone. * @param string $selected_zone Selected timezone.
* @param string $locale Optional. Locale to load the timezones in. Default current site locale. * @param string $locale Optional. Locale to load the timezones in. Default current site locale.
* @return string * @return string
@ -6258,8 +6242,6 @@ function send_frame_options_header() {
* @see wp_kses() * @see wp_kses()
* @see esc_url() * @see esc_url()
* *
* @staticvar array $protocols
*
* @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https', * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https',
* 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', * 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet',
* 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. * 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
@ -6295,8 +6277,6 @@ function wp_allowed_protocols() {
* *
* @see https://core.trac.wordpress.org/ticket/19589 * @see https://core.trac.wordpress.org/ticket/19589
* *
* @staticvar array $truncate_paths Array of paths to truncate.
*
* @param string $ignore_class Optional. A class to ignore all function calls within - useful * @param string $ignore_class Optional. A class to ignore all function calls within - useful
* when you want to just give info about the callee. Default null. * when you want to just give info about the callee. Default null.
* @param int $skip_frames Optional. A number of stack frames to skip - useful for unwinding * @param int $skip_frames Optional. A number of stack frames to skip - useful for unwinding
@ -6623,9 +6603,6 @@ function _canonical_charset( $charset ) {
* *
* @see reset_mbstring_encoding() * @see reset_mbstring_encoding()
* *
* @staticvar array $encodings
* @staticvar bool $overloaded
*
* @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding. * @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding.
* Default false. * Default false.
*/ */
@ -6963,8 +6940,6 @@ function wp_is_uuid( $uuid, $version = null ) {
* *
* @since 5.0.3 * @since 5.0.3
* *
* @staticvar int $id_counter
*
* @param string $prefix Prefix for the returned ID. * @param string $prefix Prefix for the returned ID.
* @return string Unique ID. * @return string Unique ID.
*/ */

View File

@ -15,8 +15,6 @@
* @since 2.7.0 * @since 2.7.0
* @access private * @access private
* *
* @staticvar WP_Http $http
*
* @return WP_Http HTTP Transport object. * @return WP_Http HTTP Transport object.
*/ */
function _wp_http_get_object() { function _wp_http_get_object() {
@ -620,7 +618,6 @@ function allowed_http_request_hosts( $is_external, $host ) {
* @since 3.6.0 * @since 3.6.0
* *
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* @staticvar array $queried
* *
* @param bool $is_external * @param bool $is_external
* @param string $host * @param string $host

View File

@ -1151,7 +1151,6 @@ function _load_textdomain_just_in_time( $domain ) {
* @access private * @access private
* *
* @see _load_textdomain_just_in_time() * @see _load_textdomain_just_in_time()
* @staticvar array $available_translations
* *
* @param string $domain Text domain. Unique identifier for retrieving translated strings. * @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param bool $reset Whether to reset the internal cache. Used by the switch to locale functionality. * @param bool $reset Whether to reset the internal cache. Used by the switch to locale functionality.
@ -1180,7 +1179,6 @@ function _get_path_to_translation( $domain, $reset = false ) {
* @access private * @access private
* *
* @see _get_path_to_translation() * @see _get_path_to_translation()
* @staticvar array $cached_mofiles
* *
* @param string $domain Text domain. Unique identifier for retrieving translated strings. * @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @return string|false The path to the translation file or false if no translation file was found. * @return string|false The path to the translation file or false if no translation file was found.
@ -1228,7 +1226,6 @@ function _get_path_to_translation_from_lang_dir( $domain ) {
* @since 2.8.0 * @since 2.8.0
* *
* @global MO[] $l10n * @global MO[] $l10n
* @staticvar NOOP_Translations $noop_translations
* *
* @param string $domain Text domain. Unique identifier for retrieving translated strings. * @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @return Translations|NOOP_Translations A Translations instance. * @return Translations|NOOP_Translations A Translations instance.

View File

@ -1206,8 +1206,6 @@ function get_current_network_id() {
* @access private * @access private
* *
* @global WP_Locale $wp_locale WordPress date and time locale object. * @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @staticvar bool $loaded
*/ */
function wp_load_translations_early() { function wp_load_translations_early() {
global $wp_locale; global $wp_locale;
@ -1300,8 +1298,6 @@ function wp_load_translations_early() {
* *
* @since 4.4.0 * @since 4.4.0
* *
* @staticvar bool $installing
*
* @param bool $is_installing Optional. True to set WP into Installing mode, false to turn Installing mode off. * @param bool $is_installing Optional. True to set WP into Installing mode, false to turn Installing mode off.
* Omit this parameter if you only want to fetch the current status. * Omit this parameter if you only want to fetch the current status.
* @return bool True if WP is installing, otherwise false. When a `$is_installing` is passed, the function will * @return bool True if WP is installing, otherwise false. When a `$is_installing` is passed, the function will
@ -1380,8 +1376,6 @@ function wp_convert_hr_to_bytes( $value ) {
* *
* @since 4.6.0 * @since 4.6.0
* *
* @staticvar array $ini_all
*
* @link https://www.php.net/manual/en/function.ini-get-all.php * @link https://www.php.net/manual/en/function.ini-get-all.php
* *
* @param string $setting The name of the ini setting to check. * @param string $setting The name of the ini setting to check.

View File

@ -1982,8 +1982,6 @@ add_shortcode( 'gallery', 'gallery_shortcode' );
* *
* @since 2.5.0 * @since 2.5.0
* *
* @staticvar int $instance
*
* @param array $attr { * @param array $attr {
* Attributes of the gallery shortcode. * Attributes of the gallery shortcode.
* *
@ -2312,7 +2310,6 @@ function wp_playlist_scripts( $type ) {
* @since 3.9.0 * @since 3.9.0
* *
* @global int $content_width * @global int $content_width
* @staticvar int $instance
* *
* @param array $attr { * @param array $attr {
* Array of default playlist attributes. * Array of default playlist attributes.
@ -2646,8 +2643,6 @@ function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) {
* *
* @since 3.6.0 * @since 3.6.0
* *
* @staticvar int $instance
*
* @param array $attr { * @param array $attr {
* Attributes of the audio shortcode. * Attributes of the audio shortcode.
* *
@ -2860,7 +2855,6 @@ function wp_get_video_extensions() {
* @since 3.6.0 * @since 3.6.0
* *
* @global int $content_width * @global int $content_width
* @staticvar int $instance
* *
* @param array $attr { * @param array $attr {
* Attributes of the shortcode. * Attributes of the shortcode.

View File

@ -124,9 +124,6 @@ function ms_file_constants() {
* we will have translations loaded and can trigger warnings easily. * we will have translations loaded and can trigger warnings easily.
* *
* @since 3.0.0 * @since 3.0.0
*
* @staticvar bool $subdomain_error
* @staticvar bool $subdomain_error_warn
*/ */
function ms_subdomain_constants() { function ms_subdomain_constants() {
static $subdomain_error = null; static $subdomain_error = null;

View File

@ -1929,7 +1929,6 @@ function wpmu_log_new_registrations( $blog_id, $user_id ) {
* @see term_id_filter * @see term_id_filter
* *
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* @staticvar int $global_terms_recurse
* *
* @param int $term_id An ID for a term on the current blog. * @param int $term_id An ID for a term on the current blog.
* @param string $deprecated Not used. * @param string $deprecated Not used.
@ -2318,8 +2317,6 @@ Thanks!
* *
* @since 2.8.5 * @since 2.8.5
* *
* @staticvar bool $forced_content
*
* @param bool $force * @param bool $force
* @return bool True if forced, false if not forced. * @return bool True if forced, false if not forced.
*/ */

View File

@ -16,8 +16,6 @@ require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';
* @since 3.0.0 * @since 3.0.0
* @since 4.7.0 Added the `item_spacing` argument. * @since 4.7.0 Added the `item_spacing` argument.
* *
* @staticvar array $menu_id_slugs
*
* @param array $args { * @param array $args {
* Optional. Array of nav menu arguments. * Optional. Array of nav menu arguments.
* *
@ -605,7 +603,6 @@ function walk_nav_menu_tree( $items, $depth, $r ) {
* @since 3.0.1 * @since 3.0.1
* @access private * @access private
* *
* @staticvar array $used_ids
* @param string $id * @param string $id
* @param object $item * @param object $item
* @return string * @return string

View File

@ -649,8 +649,6 @@ function _is_valid_nav_menu_item( $item ) {
* *
* @since 3.0.0 * @since 3.0.0
* *
* @staticvar array $fetched
*
* @param int|string|WP_Term $menu Menu ID, slug, name, or object. * @param int|string|WP_Term $menu Menu ID, slug, name, or object.
* @param array $args { * @param array $args {
* Optional. Arguments to pass to get_posts(). * Optional. Arguments to pass to get_posts().

View File

@ -2235,9 +2235,6 @@ if ( ! function_exists( 'wp_salt' ) ) :
* *
* @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php * @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php
* *
* @staticvar array $cached_salts
* @staticvar array $duplicated_keys
*
* @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce) * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce)
* @return string Salt value * @return string Salt value
*/ */
@ -2472,8 +2469,6 @@ if ( ! function_exists( 'wp_rand' ) ) :
* @since 4.4.0 Uses PHP7 random_int() or the random_compat library if available. * @since 4.4.0 Uses PHP7 random_int() or the random_compat library if available.
* *
* @global string $rnd_value * @global string $rnd_value
* @staticvar string $seed
* @staticvar bool $use_random_int_functionality
* *
* @param int $min Lower limit for the generated number * @param int $min Lower limit for the generated number
* @param int $max Upper limit for the generated number * @param int $max Upper limit for the generated number

View File

@ -709,9 +709,6 @@ function plugin_basename( $file ) {
* *
* @global array $wp_plugin_paths * @global array $wp_plugin_paths
* *
* @staticvar string $wp_plugin_path
* @staticvar string $wpmu_plugin_path
*
* @param string $file Known path to the file. * @param string $file Known path to the file.
* @return bool Whether the path was able to be registered. * @return bool Whether the path was able to be registered.
*/ */

View File

@ -450,9 +450,6 @@ if ( ! class_exists( 'PO', false ) ) :
} }
/** /**
* @staticvar string $last_line
* @staticvar boolean $use_last_line
*
* @param resource $f * @param resource $f
* @param string $action * @param string $action
* @return boolean * @return boolean

View File

@ -14,8 +14,6 @@
* @since 4.5.0 The optional `$autosave` parameter was deprecated and renamed to `$deprecated`. * @since 4.5.0 The optional `$autosave` parameter was deprecated and renamed to `$deprecated`.
* @access private * @access private
* *
* @staticvar array $fields
*
* @param array|WP_Post $post Optional. A post array or a WP_Post object being processed * @param array|WP_Post $post Optional. A post array or a WP_Post object being processed
* for insertion as a post revision. Default empty array. * for insertion as a post revision. Default empty array.
* @param bool $deprecated Not used. * @param bool $deprecated Not used.

View File

@ -3086,8 +3086,6 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @staticvar bool $_defer
*
* @param bool $defer Optional. Enable if true, disable if false. * @param bool $defer Optional. Enable if true, disable if false.
* @return bool Whether term counting is enabled or disabled. * @return bool Whether term counting is enabled or disabled.
*/ */
@ -3116,8 +3114,6 @@ function wp_defer_term_counting( $defer = null ) {
* *
* @since 2.3.0 * @since 2.3.0
* *
* @staticvar array $_deferred
*
* @param int|array $terms The term_taxonomy_id of the terms. * @param int|array $terms The term_taxonomy_id of the terms.
* @param string $taxonomy The context of the term. * @param string $taxonomy The context of the term.
* @param bool $do_deferred Whether to flush the deferred term counts too. Default false. * @param bool $do_deferred Whether to flush the deferred term counts too. Default false.

View File

@ -15,7 +15,6 @@
* @since 3.4.0 * @since 3.4.0
* *
* @global array $wp_theme_directories * @global array $wp_theme_directories
* @staticvar array $_themes
* *
* @param array $args { * @param array $args {
* Optional. The search arguments. * Optional. The search arguments.
@ -424,7 +423,6 @@ function register_theme_directory( $directory ) {
* @since 2.9.0 * @since 2.9.0
* *
* @global array $wp_theme_directories * @global array $wp_theme_directories
* @staticvar array $found_themes
* *
* @param bool $force Optional. Whether to force a new directory scan. Defaults to false. * @param bool $force Optional. Whether to force a new directory scan. Defaults to false.
* @return array|false Valid themes found * @return array|false Valid themes found
@ -1254,7 +1252,6 @@ function the_header_image_tag( $attr = array() ) {
* @access private * @access private
* *
* @global array $_wp_default_headers * @global array $_wp_default_headers
* @staticvar object $_wp_random_header
* *
* @return object * @return object
*/ */

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-48108'; $wp_version = '5.5-alpha-48109';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -37,8 +37,6 @@ class WP_Widget_Categories extends WP_Widget {
* @since 4.2.0 Creates a unique HTML ID for the `<select>` element * @since 4.2.0 Creates a unique HTML ID for the `<select>` element
* if more than one instance is displayed on the page. * if more than one instance is displayed on the page.
* *
* @staticvar bool $first_dropdown
*
* @param array $args Display arguments including 'before_title', 'after_title', * @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'. * 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Categories widget instance. * @param array $instance Settings for the current Categories widget instance.

View File

@ -69,8 +69,6 @@ class WP_Widget_Recent_Comments extends WP_Widget {
* @since 5.4.0 Creates a unique HTML ID for the `<ul>` element * @since 5.4.0 Creates a unique HTML ID for the `<ul>` element
* if more than one instance is displayed on the page. * if more than one instance is displayed on the page.
* *
* @staticvar bool $first_instance
*
* @param array $args Display arguments including 'before_title', 'after_title', * @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'. * 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Recent Comments widget instance. * @param array $instance Settings for the current Recent Comments widget instance.