WordPress.org

Make WordPress Core

Ticket #50426: 50426.diff

File 50426.diff, 26.4 KB (added by alishanvr, 16 months ago)

Removed the @staticvar from wp-admin and all subfolders of wp-admin

  • wp-content/themes/twentyseventeen/functions.php

    diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php
    index 6b212b128b..9e9159f1cd 100644
    a b add_filter( 'widget_tag_cloud_args', 'twentyseventeen_widget_tag_cloud_args' ); 
    628628 *
    629629 * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
    630630 *
    631  * @staticvar int $id_counter
    632  *
    633631 * @param string $prefix Prefix for the returned ID.
    634632 * @return string Unique ID.
    635633 */
  • wp-content/themes/twentytwenty/inc/template-tags.php

    diff --git a/wp-content/themes/twentytwenty/inc/template-tags.php b/wp-content/themes/twentytwenty/inc/template-tags.php
    index 1f09b966a9..5effc46231 100644
    a b function twentytwenty_toggle_duration() { 
    776776 *
    777777 * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
    778778 *
    779  * @staticvar int $id_counter
    780  *
    781779 * @param string $prefix Prefix for the returned ID.
    782780 * @return string Unique ID.
    783781 */
  • wp-includes/admin-bar.php

    diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php
    index 6b5ad0e575..15cb441668 100644
    a b function _wp_admin_bar_init() { 
    7070 * @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback.
    7171 *
    7272 * @global WP_Admin_Bar $wp_admin_bar
    73  *
    74  * @staticvar bool $rendered
    7573 */
    7674function wp_admin_bar_render() {
    7775        global $wp_admin_bar;
  • wp-includes/class-http.php

    diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php
    index 5260fcf7ba..ee5c3c0670 100644
    a b class WP_Http { 
    560560         * @deprecated 5.1.0 Use WP_Http::request()
    561561         * @see WP_Http::request()
    562562         *
    563          * @staticvar array $transports
    564          *
    565563         * @param string $url URL to Request.
    566564         * @param array $args Request arguments.
    567565         * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
    class WP_Http { 
    851849         * @link https://core.trac.wordpress.org/ticket/8927 Allow preventing external requests.
    852850         * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS
    853851         *
    854          * @staticvar array|null $accessible_hosts
    855          * @staticvar array      $wildcard_regex
    856          *
    857852         * @param string $uri URI of url.
    858853         * @return bool True to block, false to allow.
    859854         */
  • wp-includes/class-wp-customize-widgets.php

    diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php
    index d982ff1776..3071b2f2b5 100644
    a b final class WP_Customize_Widgets { 
    173173         *
    174174         * @since 4.2.0
    175175         *
    176          * @staticvar array $cache
    177          *
    178176         * @param string $setting_id Setting ID.
    179177         * @return string|void Setting type.
    180178         */
    final class WP_Customize_Widgets { 
    936934         *
    937935         * @global array $wp_registered_widgets
    938936         * @global array $wp_registered_widget_controls
    939          * @staticvar array $available_widgets
    940937         *
    941938         * @see wp_list_widgets()
    942939         *
  • wp-includes/class-wp-http-proxy.php

    diff --git a/wp-includes/class-wp-http-proxy.php b/wp-includes/class-wp-http-proxy.php
    index f9b97c865e..a1b3418d77 100644
    a b class WP_HTTP_Proxy { 
    160160         *
    161161         * @since 2.8.0
    162162         *
    163          * @staticvar array|null $bypass_hosts
    164          * @staticvar array      $wildcard_regex
    165          *
    166163         * @param string $uri URI to check.
    167164         * @return bool True, to send through the proxy and false if, the proxy should not be used.
    168165         */
  • wp-includes/class-wp-rewrite.php

    diff --git a/wp-includes/class-wp-rewrite.php b/wp-includes/class-wp-rewrite.php
    index e23c483893..cfd5c1ecee 100644
    a b class WP_Rewrite { 
    17861786         *
    17871787         * @since 2.0.1
    17881788         *
    1789          * @staticvar bool $do_hard_later
    1790          *
    17911789         * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
    17921790         */
    17931791        public function flush_rules( $hard = true ) {
  • wp-includes/class-wp-theme.php

    diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php
    index 9ffef81219..ec796b5826 100644
    a b final class WP_Theme implements ArrayAccess { 
    453453        /**
    454454         * __isset() magic method for properties formerly returned by current_theme_info()
    455455         *
    456          * @staticvar array $properties
    457          *
    458456         * @since 3.4.0
    459457         *
    460458         * @param string $offset Property to check if set.
    final class WP_Theme implements ArrayAccess { 
    547545        /**
    548546         * Method to implement ArrayAccess for keys formerly returned by get_themes()
    549547         *
    550          * @staticvar array $keys
    551          *
    552548         * @since 3.4.0
    553549         *
    554550         * @param mixed $offset
    final class WP_Theme implements ArrayAccess { 
    810806         * @since 3.4.0
    811807         * @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers.
    812808         *
    813          * @staticvar array $header_tags
    814          * @staticvar array $header_tags_with_a
    815          *
    816809         * @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version',
    817810         *                       'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'.
    818811         * @param string $value  Value to sanitize.
    final class WP_Theme implements ArrayAccess { 
    876869         *
    877870         * @since 3.4.0
    878871         *
    879          * @staticvar string $comma
    880          *
    881872         * @param string       $header    Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
    882873         * @param string|array $value     Value to mark up. An array for Tags header, string otherwise.
    883874         * @param string       $translate Whether the header has been translated.
    final class WP_Theme implements ArrayAccess { 
    922913         *
    923914         * @since 3.4.0
    924915         *
    925          * @staticvar array $tags_list
    926          *
    927916         * @param string       $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
    928917         * @param string|array $value  Value to translate. An array for Tags header, string otherwise.
    929918         * @return string|array Translated value. An array for Tags header, string otherwise.
    final class WP_Theme implements ArrayAccess { 
    14731462         *
    14741463         * @since 3.4.0
    14751464         *
    1476          * @staticvar array $allowed_themes
    1477          *
    14781465         * @return string[] Array of stylesheet names.
    14791466         */
    14801467        public static function get_allowed_on_network() {
    final class WP_Theme implements ArrayAccess { 
    15001487         *
    15011488         * @since 3.4.0
    15021489         *
    1503          * @staticvar array $allowed_themes
    1504          *
    15051490         * @param int $blog_id Optional. ID of the site. Defaults to the current site.
    15061491         * @return string[] Array of stylesheet names.
    15071492         */
  • wp-includes/comment.php

    diff --git a/wp-includes/comment.php b/wp-includes/comment.php
    index ff11dc004c..989a51d97f 100644
    a b function wp_update_comment( $commentarr ) { 
    24542454 *
    24552455 * @since 2.5.0
    24562456 *
    2457  * @staticvar bool $_defer
    2458  *
    24592457 * @param bool $defer
    24602458 * @return bool
    24612459 */
    function wp_defer_comment_counting( $defer = null ) { 
    24882486 *
    24892487 * @see wp_update_comment_count_now() For what could cause a false return value
    24902488 *
    2491  * @staticvar array $_deferred
    2492  *
    24932489 * @param int|null $post_id     Post ID.
    24942490 * @param bool     $do_deferred Optional. Whether to process previously deferred
    24952491 *                              post comment counts. Default false.
  • wp-includes/compat.php

    diff --git a/wp-includes/compat.php b/wp-includes/compat.php
    index 0fc58981dd..9258a9ecb9 100644
    a b if ( ! function_exists( '_' ) ) { 
    2020 * @since 4.2.2
    2121 * @access private
    2222 *
    23  * @staticvar string $utf8_pcre
    24  *
    2523 * @param bool $set - Used for testing only
    2624 *             null   : default - get PCRE/u capability
    2725 *             false  : Used for testing - return false for future calls to this function
  • wp-includes/embed.php

    diff --git a/wp-includes/embed.php b/wp-includes/embed.php
    index 282882d85d..a02e1e100d 100644
    a b function wp_oembed_get( $url, $args = '' ) { 
    115115 * @since 2.9.0
    116116 * @access private
    117117 *
    118  * @staticvar WP_oEmbed $wp_oembed
    119  *
    120118 * @return WP_oEmbed object.
    121119 */
    122120function _wp_oembed_get_object() {
  • wp-includes/formatting.php

    diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
    index 0dec8388c9..14fcceaaef 100644
    a b  
    2929 *
    3030 * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases.
    3131 * @global array $shortcode_tags
    32  * @staticvar array  $static_characters
    33  * @staticvar array  $static_replacements
    34  * @staticvar array  $dynamic_characters
    35  * @staticvar array  $dynamic_replacements
    36  * @staticvar array  $default_no_texturize_tags
    37  * @staticvar array  $default_no_texturize_shortcodes
    38  * @staticvar bool   $run_texturize
    39  * @staticvar string $apos
    40  * @staticvar string $prime
    41  * @staticvar string $double_prime
    42  * @staticvar string $opening_quote
    43  * @staticvar string $closing_quote
    44  * @staticvar string $opening_single_quote
    45  * @staticvar string $closing_single_quote
    46  * @staticvar string $open_q_flag
    47  * @staticvar string $open_sq_flag
    48  * @staticvar string $apos_flag
    4932 *
    5033 * @param string $text  The text to be formatted.
    5134 * @param bool   $reset Set to true for unit testing. Translated patterns will reset.
    function wp_html_split( $input ) { 
    633616 *
    634617 * @since 4.4.0
    635618 *
    636  * @staticvar string $regex
    637  *
    638619 * @return string The regular expression
    639620 */
    640621function get_html_split_regex() {
    function get_html_split_regex() { 
    694675 * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap.
    695676 * @since 4.4.0
    696677 *
    697  * @staticvar string $html_regex
    698  *
    699678 * @param string $shortcode_regex The result from _get_wptexturize_shortcode_regex(). Optional.
    700679 * @return string The regular expression
    701680 */
    function seems_utf8( $str ) { 
    938917 * @since 5.5.0 `$quote_style` also accepts `ENT_XML1`.
    939918 * @access private
    940919 *
    941  * @staticvar string $_charset
    942  *
    943920 * @param string       $string        The text which is to be encoded.
    944921 * @param int|string   $quote_style   Optional. Converts double quotes if set to ENT_COMPAT,
    945922 *                                    both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES.
    function wp_specialchars_decode( $string, $quote_style = ENT_NOQUOTES ) { 
    11121089 *
    11131090 * @since 2.8.0
    11141091 *
    1115  * @staticvar bool $is_utf8
    1116  * @staticvar bool $utf8_pcre
    1117  *
    11181092 * @param string  $string The text which is to be checked.
    11191093 * @param bool    $strip Optional. Whether to attempt to strip out invalid UTF8. Default is false.
    11201094 * @return string The checked text.
    function wp_basename( $path, $suffix = '' ) { 
    54455419 *
    54465420 * @since 3.0.0
    54475421 *
    5448  * @staticvar string|false $dblq
    5449  *
    54505422 * @param string $text The text to be modified.
    54515423 * @return string The modified text.
    54525424 */
    function get_url_in_content( $content ) { 
    56195591 *
    56205592 * @since 4.0.0
    56215593 *
    5622  * @staticvar string $spaces
    5623  *
    56245594 * @return string The spaces regexp.
    56255595 */
    56265596function wp_spaces_regexp() {
    function wp_spaces_regexp() { 
    56495619 * Print the important emoji-related styles.
    56505620 *
    56515621 * @since 4.2.0
    5652  *
    5653  * @staticvar bool $printed
    56545622 */
    56555623function print_emoji_styles() {
    56565624        static $printed = false;
    img.emoji { 
    56845652 * Print the inline Emoji detection script if it is not already printed.
    56855653 *
    56865654 * @since 4.2.0
    5687  * @staticvar bool $printed
    56885655 */
    56895656function print_emoji_detection_script() {
    56905657        static $printed = false;
  • wp-includes/functions.php

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index a622479be8..74f8ab5227 100644
    a b function wp_normalize_path( $path ) { 
    21262126 *
    21272127 * @since 2.5.0
    21282128 *
    2129  * @staticvar string $temp
    2130  *
    21312129 * @return string Writable temporary directory.
    21322130 */
    21332131function get_temp_dir() {
    function wp_get_upload_dir() { 
    22612259 * @since 2.0.0
    22622260 * @uses _wp_upload_dir()
    22632261 *
    2264  * @staticvar array $cache
    2265  * @staticvar array $tested_paths
    2266  *
    22672262 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
    22682263 * @param bool   $create_dir Optional. Whether to check and create the uploads directory.
    22692264 *                           Default true for backward compatibility.
    function _wp_json_sanity_check( $data, $depth ) { 
    39863981 *
    39873982 * @see _wp_json_sanity_check()
    39883983 *
    3989  * @staticvar bool $use_mb
    3990  *
    39913984 * @param string $string The string which is to be converted.
    39923985 * @return string The checked string.
    39933986 */
    function validate_file( $file, $allowed_files = array() ) { 
    53505343 *
    53515344 * @since 2.6.0
    53525345 *
    5353  * @staticvar bool $forced
    5354  *
    53555346 * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null.
    53565347 * @return bool True if forced, false if not forced.
    53575348 */
    function wp_guess_url() { 
    54285419 *
    54295420 * @since 3.3.0
    54305421 *
    5431  * @staticvar bool $_suspend
    5432  *
    54335422 * @param bool $suspend Optional. Suspends additions if true, re-enables them if false.
    54345423 * @return bool The current suspend setting
    54355424 */
    function get_main_network_id() { 
    55795568 *
    55805569 * @since 3.0.0
    55815570 *
    5582  * @staticvar bool $global_terms
    5583  *
    55845571 * @return bool True if multisite and global terms enabled.
    55855572 */
    55865573function global_terms_enabled() {
    function _wp_timezone_choice_usort_callback( $a, $b ) { 
    57205707 * @since 2.9.0
    57215708 * @since 4.7.0 Added the `$locale` parameter.
    57225709 *
    5723  * @staticvar bool $mo_loaded
    5724  * @staticvar string $locale_loaded
    5725  *
    57265710 * @param string $selected_zone Selected timezone.
    57275711 * @param string $locale        Optional. Locale to load the timezones in. Default current site locale.
    57285712 * @return string
    function send_frame_options_header() { 
    62596243 * @see wp_kses()
    62606244 * @see esc_url()
    62616245 *
    6262  * @staticvar array $protocols
    6263  *
    62646246 * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https',
    62656247 *                  'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet',
    62666248 *                  'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
    function wp_allowed_protocols() { 
    62966278 *
    62976279 * @see https://core.trac.wordpress.org/ticket/19589
    62986280 *
    6299  * @staticvar array $truncate_paths Array of paths to truncate.
    6300  *
    63016281 * @param string $ignore_class Optional. A class to ignore all function calls within - useful
    63026282 *                             when you want to just give info about the callee. Default null.
    63036283 * @param int    $skip_frames  Optional. A number of stack frames to skip - useful for unwinding
    function _canonical_charset( $charset ) { 
    66246604 *
    66256605 * @see reset_mbstring_encoding()
    66266606 *
    6627  * @staticvar array $encodings
    6628  * @staticvar bool  $overloaded
    6629  *
    66306607 * @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding.
    66316608 *                    Default false.
    66326609 */
    function wp_is_uuid( $uuid, $version = null ) { 
    69646941 *
    69656942 * @since 5.0.3
    69666943 *
    6967  * @staticvar int $id_counter
    6968  *
    69696944 * @param string $prefix Prefix for the returned ID.
    69706945 * @return string Unique ID.
    69716946 */
  • wp-includes/http.php

    diff --git a/wp-includes/http.php b/wp-includes/http.php
    index fc34c170f4..7d71f39cd5 100644
    a b  
    1515 * @since 2.7.0
    1616 * @access private
    1717 *
    18  * @staticvar WP_Http $http
    19  *
    2018 * @return WP_Http HTTP Transport object.
    2119 */
    2220function _wp_http_get_object() {
    function allowed_http_request_hosts( $is_external, $host ) { 
    620618 * @since 3.6.0
    621619 *
    622620 * @global wpdb $wpdb WordPress database abstraction object.
    623  * @staticvar array $queried
    624621 *
    625622 * @param bool   $is_external
    626623 * @param string $host
  • wp-includes/l10n.php

    diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php
    index d7e6acd55b..3ffa709643 100644
    a b function _load_textdomain_just_in_time( $domain ) { 
    11511151 * @access private
    11521152 *
    11531153 * @see _load_textdomain_just_in_time()
    1154  * @staticvar array $available_translations
    11551154 *
    11561155 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
    11571156 * @param bool   $reset  Whether to reset the internal cache. Used by the switch to locale functionality.
    function _get_path_to_translation( $domain, $reset = false ) { 
    11801179 * @access private
    11811180 *
    11821181 * @see _get_path_to_translation()
    1183  * @staticvar array $cached_mofiles
    11841182 *
    11851183 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
    11861184 * @return string|false The path to the translation file or false if no translation file was found.
    function _get_path_to_translation_from_lang_dir( $domain ) { 
    12281226 * @since 2.8.0
    12291227 *
    12301228 * @global MO[] $l10n
    1231  * @staticvar NOOP_Translations $noop_translations
    12321229 *
    12331230 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
    12341231 * @return Translations|NOOP_Translations A Translations instance.
  • wp-includes/load.php

    diff --git a/wp-includes/load.php b/wp-includes/load.php
    index 1fa88e1c8b..fcddd575d4 100644
    a b function get_current_network_id() { 
    12061206 * @access private
    12071207 *
    12081208 * @global WP_Locale $wp_locale WordPress date and time locale object.
    1209  *
    1210  * @staticvar bool $loaded
    12111209 */
    12121210function wp_load_translations_early() {
    12131211        global $wp_locale;
    function wp_load_translations_early() { 
    13001298 *
    13011299 * @since 4.4.0
    13021300 *
    1303  * @staticvar bool $installing
    1304  *
    13051301 * @param bool $is_installing Optional. True to set WP into Installing mode, false to turn Installing mode off.
    13061302 *                            Omit this parameter if you only want to fetch the current status.
    13071303 * @return bool True if WP is installing, otherwise false. When a `$is_installing` is passed, the function will
    function wp_convert_hr_to_bytes( $value ) { 
    13801376 *
    13811377 * @since 4.6.0
    13821378 *
    1383  * @staticvar array $ini_all
    1384  *
    13851379 * @link https://www.php.net/manual/en/function.ini-get-all.php
    13861380 *
    13871381 * @param string $setting The name of the ini setting to check.
  • wp-includes/media.php

    diff --git a/wp-includes/media.php b/wp-includes/media.php
    index e38b5f0e3f..f7c1abbedf 100644
    a b add_shortcode( 'gallery', 'gallery_shortcode' ); 
    19821982 *
    19831983 * @since 2.5.0
    19841984 *
    1985  * @staticvar int $instance
    1986  *
    19871985 * @param array $attr {
    19881986 *     Attributes of the gallery shortcode.
    19891987 *
    function wp_playlist_scripts( $type ) { 
    23122310 * @since 3.9.0
    23132311 *
    23142312 * @global int $content_width
    2315  * @staticvar int $instance
    23162313 *
    23172314 * @param array $attr {
    23182315 *     Array of default playlist attributes.
    function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) { 
    26462643 *
    26472644 * @since 3.6.0
    26482645 *
    2649  * @staticvar int $instance
    2650  *
    26512646 * @param array  $attr {
    26522647 *     Attributes of the audio shortcode.
    26532648 *
    function wp_get_video_extensions() { 
    28602855 * @since 3.6.0
    28612856 *
    28622857 * @global int $content_width
    2863  * @staticvar int $instance
    28642858 *
    28652859 * @param array  $attr {
    28662860 *     Attributes of the shortcode.
  • wp-includes/ms-default-constants.php

    diff --git a/wp-includes/ms-default-constants.php b/wp-includes/ms-default-constants.php
    index 3164cf6e89..7d794e32e6 100644
    a b function ms_file_constants() { 
    124124 * we will have translations loaded and can trigger warnings easily.
    125125 *
    126126 * @since 3.0.0
    127  *
    128  * @staticvar bool $subdomain_error
    129  * @staticvar bool $subdomain_error_warn
    130127 */
    131128function ms_subdomain_constants() {
    132129        static $subdomain_error      = null;
  • wp-includes/ms-functions.php

    diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php
    index 8d0e2b0160..d7631bb5ed 100644
    a b function wpmu_log_new_registrations( $blog_id, $user_id ) { 
    19271927 * @see term_id_filter
    19281928 *
    19291929 * @global wpdb $wpdb WordPress database abstraction object.
    1930  * @staticvar int $global_terms_recurse
    19311930 *
    19321931 * @param int    $term_id    An ID for a term on the current blog.
    19331932 * @param string $deprecated Not used.
    Thanks! 
    23162315 *
    23172316 * @since 2.8.5
    23182317 *
    2319  * @staticvar bool $forced_content
    2320  *
    23212318 * @param bool $force
    23222319 * @return bool True if forced, false if not forced.
    23232320 */
  • wp-includes/nav-menu-template.php

    diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php
    index 9ca093707f..ffe9777cb2 100644
    a b require_once ABSPATH . WPINC . '/class-walker-nav-menu.php'; 
    1616 * @since 3.0.0
    1717 * @since 4.7.0 Added the `item_spacing` argument.
    1818 *
    19  * @staticvar array $menu_id_slugs
    20  *
    2119 * @param array $args {
    2220 *     Optional. Array of nav menu arguments.
    2321 *
    function walk_nav_menu_tree( $items, $depth, $r ) { 
    605603 * @since 3.0.1
    606604 * @access private
    607605 *
    608  * @staticvar array $used_ids
    609606 * @param string $id
    610607 * @param object $item
    611608 * @return string
  • wp-includes/nav-menu.php

    diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php
    index d3667448c1..80649ef79c 100644
    a b function _is_valid_nav_menu_item( $item ) { 
    649649 *
    650650 * @since 3.0.0
    651651 *
    652  * @staticvar array $fetched
    653  *
    654652 * @param int|string|WP_Term $menu Menu ID, slug, name, or object.
    655653 * @param array              $args {
    656654 *     Optional. Arguments to pass to get_posts().
  • wp-includes/pluggable.php

    diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
    index c66beea1dd..c019b91af9 100644
    a b if ( ! function_exists( 'wp_salt' ) ) : 
    22352235         *
    22362236         * @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php
    22372237         *
    2238          * @staticvar array $cached_salts
    2239          * @staticvar array $duplicated_keys
    2240          *
    22412238         * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce)
    22422239         * @return string Salt value
    22432240         */
    if ( ! function_exists( 'wp_rand' ) ) : 
    24722469         * @since 4.4.0 Uses PHP7 random_int() or the random_compat library if available.
    24732470         *
    24742471         * @global string $rnd_value
    2475          * @staticvar string $seed
    2476          * @staticvar bool $use_random_int_functionality
    24772472         *
    24782473         * @param int $min Lower limit for the generated number
    24792474         * @param int $max Upper limit for the generated number
  • wp-includes/plugin.php

    diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
    index 2a97c9eba5..25c60a5813 100644
    a b function plugin_basename( $file ) { 
    709709 *
    710710 * @global array $wp_plugin_paths
    711711 *
    712  * @staticvar string $wp_plugin_path
    713  * @staticvar string $wpmu_plugin_path
    714  *
    715712 * @param string $file Known path to the file.
    716713 * @return bool Whether the path was able to be registered.
    717714 */
  • wp-includes/pomo/po.php

    diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php
    index 29f370841d..5f3b70676d 100644
    a b if ( ! class_exists( 'PO', false ) ) : 
    450450                }
    451451
    452452                /**
    453                  * @staticvar string   $last_line
    454                  * @staticvar boolean  $use_last_line
    455                  *
    456453                 * @param     resource $f
    457454                 * @param     string   $action
    458455                 * @return boolean
  • wp-includes/revision.php

    diff --git a/wp-includes/revision.php b/wp-includes/revision.php
    index 49c8253cbe..9eb74b98a9 100644
    a b  
    1414 * @since 4.5.0 The optional `$autosave` parameter was deprecated and renamed to `$deprecated`.
    1515 * @access private
    1616 *
    17  * @staticvar array $fields
    18  *
    1917 * @param array|WP_Post $post       Optional. A post array or a WP_Post object being processed
    2018 *                                  for insertion as a post revision. Default empty array.
    2119 * @param bool          $deprecated Not used.
  • wp-includes/taxonomy.php

    diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
    index 751e6cadff..cf14fe34ca 100644
    a b function wp_update_term( $term_id, $taxonomy, $args = array() ) { 
    30833083 *
    30843084 * @since 2.5.0
    30853085 *
    3086  * @staticvar bool $_defer
    3087  *
    30883086 * @param bool $defer Optional. Enable if true, disable if false.
    30893087 * @return bool Whether term counting is enabled or disabled.
    30903088 */
    function wp_defer_term_counting( $defer = null ) { 
    31133111 *
    31143112 * @since 2.3.0
    31153113 *
    3116  * @staticvar array $_deferred
    3117  *
    31183114 * @param int|array $terms       The term_taxonomy_id of the terms.
    31193115 * @param string    $taxonomy    The context of the term.
    31203116 * @param bool      $do_deferred Whether to flush the deferred term counts too. Default false.
  • wp-includes/theme.php

    diff --git a/wp-includes/theme.php b/wp-includes/theme.php
    index e79474c988..440afcc3b0 100644
    a b  
    1515 * @since 3.4.0
    1616 *
    1717 * @global array $wp_theme_directories
    18  * @staticvar array $_themes
    1918 *
    2019 * @param array $args {
    2120 *     Optional. The search arguments.
    function register_theme_directory( $directory ) { 
    424423 * @since 2.9.0
    425424 *
    426425 * @global array $wp_theme_directories
    427  * @staticvar array $found_themes
    428426 *
    429427 * @param bool $force Optional. Whether to force a new directory scan. Defaults to false.
    430428 * @return array|false Valid themes found
    function the_header_image_tag( $attr = array() ) { 
    12541252 * @access private
    12551253 *
    12561254 * @global array  $_wp_default_headers
    1257  * @staticvar object $_wp_random_header
    12581255 *
    12591256 * @return object
    12601257 */
  • wp-includes/widgets/class-wp-widget-categories.php

    diff --git a/wp-includes/widgets/class-wp-widget-categories.php b/wp-includes/widgets/class-wp-widget-categories.php
    index 60bf6ef819..b532454fe8 100644
    a b class WP_Widget_Categories extends WP_Widget { 
    3737         * @since 4.2.0 Creates a unique HTML ID for the `<select>` element
    3838         *              if more than one instance is displayed on the page.
    3939         *
    40          * @staticvar bool $first_dropdown
    41          *
    4240         * @param array $args     Display arguments including 'before_title', 'after_title',
    4341         *                        'before_widget', and 'after_widget'.
    4442         * @param array $instance Settings for the current Categories widget instance.
  • wp-includes/widgets/class-wp-widget-recent-comments.php

    diff --git a/wp-includes/widgets/class-wp-widget-recent-comments.php b/wp-includes/widgets/class-wp-widget-recent-comments.php
    index e9da5c1bdc..fd8ae05fdc 100644
    a b class WP_Widget_Recent_Comments extends WP_Widget { 
    6969         * @since 5.4.0 Creates a unique HTML ID for the `<ul>` element
    7070         *              if more than one instance is displayed on the page.
    7171         *
    72          * @staticvar bool $first_instance
    73          *
    7472         * @param array $args     Display arguments including 'before_title', 'after_title',
    7573         *                        'before_widget', and 'after_widget'.
    7674         * @param array $instance Settings for the current Recent Comments widget instance.