-
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' ); |
| 628 | 628 | * |
| 629 | 629 | * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead. |
| 630 | 630 | * |
| 631 | | * @staticvar int $id_counter |
| 632 | | * |
| 633 | 631 | * @param string $prefix Prefix for the returned ID. |
| 634 | 632 | * @return string Unique ID. |
| 635 | 633 | */ |
-
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() { |
| 776 | 776 | * |
| 777 | 777 | * @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead. |
| 778 | 778 | * |
| 779 | | * @staticvar int $id_counter |
| 780 | | * |
| 781 | 779 | * @param string $prefix Prefix for the returned ID. |
| 782 | 780 | * @return string Unique ID. |
| 783 | 781 | */ |
-
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() { |
| 70 | 70 | * @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback. |
| 71 | 71 | * |
| 72 | 72 | * @global WP_Admin_Bar $wp_admin_bar |
| 73 | | * |
| 74 | | * @staticvar bool $rendered |
| 75 | 73 | */ |
| 76 | 74 | function wp_admin_bar_render() { |
| 77 | 75 | global $wp_admin_bar; |
-
diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php
index 5260fcf7ba..ee5c3c0670 100644
|
a
|
b
|
class WP_Http { |
| 560 | 560 | * @deprecated 5.1.0 Use WP_Http::request() |
| 561 | 561 | * @see WP_Http::request() |
| 562 | 562 | * |
| 563 | | * @staticvar array $transports |
| 564 | | * |
| 565 | 563 | * @param string $url URL to Request. |
| 566 | 564 | * @param array $args Request arguments. |
| 567 | 565 | * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. |
| … |
… |
class WP_Http { |
| 851 | 849 | * @link https://core.trac.wordpress.org/ticket/8927 Allow preventing external requests. |
| 852 | 850 | * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS |
| 853 | 851 | * |
| 854 | | * @staticvar array|null $accessible_hosts |
| 855 | | * @staticvar array $wildcard_regex |
| 856 | | * |
| 857 | 852 | * @param string $uri URI of url. |
| 858 | 853 | * @return bool True to block, false to allow. |
| 859 | 854 | */ |
-
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 { |
| 173 | 173 | * |
| 174 | 174 | * @since 4.2.0 |
| 175 | 175 | * |
| 176 | | * @staticvar array $cache |
| 177 | | * |
| 178 | 176 | * @param string $setting_id Setting ID. |
| 179 | 177 | * @return string|void Setting type. |
| 180 | 178 | */ |
| … |
… |
final class WP_Customize_Widgets { |
| 936 | 934 | * |
| 937 | 935 | * @global array $wp_registered_widgets |
| 938 | 936 | * @global array $wp_registered_widget_controls |
| 939 | | * @staticvar array $available_widgets |
| 940 | 937 | * |
| 941 | 938 | * @see wp_list_widgets() |
| 942 | 939 | * |
-
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 { |
| 160 | 160 | * |
| 161 | 161 | * @since 2.8.0 |
| 162 | 162 | * |
| 163 | | * @staticvar array|null $bypass_hosts |
| 164 | | * @staticvar array $wildcard_regex |
| 165 | | * |
| 166 | 163 | * @param string $uri URI to check. |
| 167 | 164 | * @return bool True, to send through the proxy and false if, the proxy should not be used. |
| 168 | 165 | */ |
-
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 { |
| 1786 | 1786 | * |
| 1787 | 1787 | * @since 2.0.1 |
| 1788 | 1788 | * |
| 1789 | | * @staticvar bool $do_hard_later |
| 1790 | | * |
| 1791 | 1789 | * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard). |
| 1792 | 1790 | */ |
| 1793 | 1791 | public function flush_rules( $hard = true ) { |
-
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 { |
| 453 | 453 | /** |
| 454 | 454 | * __isset() magic method for properties formerly returned by current_theme_info() |
| 455 | 455 | * |
| 456 | | * @staticvar array $properties |
| 457 | | * |
| 458 | 456 | * @since 3.4.0 |
| 459 | 457 | * |
| 460 | 458 | * @param string $offset Property to check if set. |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 547 | 545 | /** |
| 548 | 546 | * Method to implement ArrayAccess for keys formerly returned by get_themes() |
| 549 | 547 | * |
| 550 | | * @staticvar array $keys |
| 551 | | * |
| 552 | 548 | * @since 3.4.0 |
| 553 | 549 | * |
| 554 | 550 | * @param mixed $offset |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 810 | 806 | * @since 3.4.0 |
| 811 | 807 | * @since 5.4.0 Added support for `Requires at least` and `Requires PHP` headers. |
| 812 | 808 | * |
| 813 | | * @staticvar array $header_tags |
| 814 | | * @staticvar array $header_tags_with_a |
| 815 | | * |
| 816 | 809 | * @param string $header Theme header. Accepts 'Name', 'Description', 'Author', 'Version', |
| 817 | 810 | * 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'. |
| 818 | 811 | * @param string $value Value to sanitize. |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 876 | 869 | * |
| 877 | 870 | * @since 3.4.0 |
| 878 | 871 | * |
| 879 | | * @staticvar string $comma |
| 880 | | * |
| 881 | 872 | * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. |
| 882 | 873 | * @param string|array $value Value to mark up. An array for Tags header, string otherwise. |
| 883 | 874 | * @param string $translate Whether the header has been translated. |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 922 | 913 | * |
| 923 | 914 | * @since 3.4.0 |
| 924 | 915 | * |
| 925 | | * @staticvar array $tags_list |
| 926 | | * |
| 927 | 916 | * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. |
| 928 | 917 | * @param string|array $value Value to translate. An array for Tags header, string otherwise. |
| 929 | 918 | * @return string|array Translated value. An array for Tags header, string otherwise. |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 1473 | 1462 | * |
| 1474 | 1463 | * @since 3.4.0 |
| 1475 | 1464 | * |
| 1476 | | * @staticvar array $allowed_themes |
| 1477 | | * |
| 1478 | 1465 | * @return string[] Array of stylesheet names. |
| 1479 | 1466 | */ |
| 1480 | 1467 | public static function get_allowed_on_network() { |
| … |
… |
final class WP_Theme implements ArrayAccess { |
| 1500 | 1487 | * |
| 1501 | 1488 | * @since 3.4.0 |
| 1502 | 1489 | * |
| 1503 | | * @staticvar array $allowed_themes |
| 1504 | | * |
| 1505 | 1490 | * @param int $blog_id Optional. ID of the site. Defaults to the current site. |
| 1506 | 1491 | * @return string[] Array of stylesheet names. |
| 1507 | 1492 | */ |
-
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index ff11dc004c..989a51d97f 100644
|
a
|
b
|
function wp_update_comment( $commentarr ) { |
| 2454 | 2454 | * |
| 2455 | 2455 | * @since 2.5.0 |
| 2456 | 2456 | * |
| 2457 | | * @staticvar bool $_defer |
| 2458 | | * |
| 2459 | 2457 | * @param bool $defer |
| 2460 | 2458 | * @return bool |
| 2461 | 2459 | */ |
| … |
… |
function wp_defer_comment_counting( $defer = null ) { |
| 2488 | 2486 | * |
| 2489 | 2487 | * @see wp_update_comment_count_now() For what could cause a false return value |
| 2490 | 2488 | * |
| 2491 | | * @staticvar array $_deferred |
| 2492 | | * |
| 2493 | 2489 | * @param int|null $post_id Post ID. |
| 2494 | 2490 | * @param bool $do_deferred Optional. Whether to process previously deferred |
| 2495 | 2491 | * post comment counts. Default false. |
-
diff --git a/wp-includes/compat.php b/wp-includes/compat.php
index 0fc58981dd..9258a9ecb9 100644
|
a
|
b
|
if ( ! function_exists( '_' ) ) { |
| 20 | 20 | * @since 4.2.2 |
| 21 | 21 | * @access private |
| 22 | 22 | * |
| 23 | | * @staticvar string $utf8_pcre |
| 24 | | * |
| 25 | 23 | * @param bool $set - Used for testing only |
| 26 | 24 | * null : default - get PCRE/u capability |
| 27 | 25 | * false : Used for testing - return false for future calls to this function |
-
diff --git a/wp-includes/embed.php b/wp-includes/embed.php
index 282882d85d..a02e1e100d 100644
|
a
|
b
|
function wp_oembed_get( $url, $args = '' ) { |
| 115 | 115 | * @since 2.9.0 |
| 116 | 116 | * @access private |
| 117 | 117 | * |
| 118 | | * @staticvar WP_oEmbed $wp_oembed |
| 119 | | * |
| 120 | 118 | * @return WP_oEmbed object. |
| 121 | 119 | */ |
| 122 | 120 | function _wp_oembed_get_object() { |
-
diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 0dec8388c9..14fcceaaef 100644
|
a
|
b
|
|
| 29 | 29 | * |
| 30 | 30 | * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases. |
| 31 | 31 | * @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 |
| 49 | 32 | * |
| 50 | 33 | * @param string $text The text to be formatted. |
| 51 | 34 | * @param bool $reset Set to true for unit testing. Translated patterns will reset. |
| … |
… |
function wp_html_split( $input ) { |
| 633 | 616 | * |
| 634 | 617 | * @since 4.4.0 |
| 635 | 618 | * |
| 636 | | * @staticvar string $regex |
| 637 | | * |
| 638 | 619 | * @return string The regular expression |
| 639 | 620 | */ |
| 640 | 621 | function get_html_split_regex() { |
| … |
… |
function get_html_split_regex() { |
| 694 | 675 | * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap. |
| 695 | 676 | * @since 4.4.0 |
| 696 | 677 | * |
| 697 | | * @staticvar string $html_regex |
| 698 | | * |
| 699 | 678 | * @param string $shortcode_regex The result from _get_wptexturize_shortcode_regex(). Optional. |
| 700 | 679 | * @return string The regular expression |
| 701 | 680 | */ |
| … |
… |
function seems_utf8( $str ) { |
| 938 | 917 | * @since 5.5.0 `$quote_style` also accepts `ENT_XML1`. |
| 939 | 918 | * @access private |
| 940 | 919 | * |
| 941 | | * @staticvar string $_charset |
| 942 | | * |
| 943 | 920 | * @param string $string The text which is to be encoded. |
| 944 | 921 | * @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
| 945 | 922 | * 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 ) { |
| 1112 | 1089 | * |
| 1113 | 1090 | * @since 2.8.0 |
| 1114 | 1091 | * |
| 1115 | | * @staticvar bool $is_utf8 |
| 1116 | | * @staticvar bool $utf8_pcre |
| 1117 | | * |
| 1118 | 1092 | * @param string $string The text which is to be checked. |
| 1119 | 1093 | * @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default is false. |
| 1120 | 1094 | * @return string The checked text. |
| … |
… |
function wp_basename( $path, $suffix = '' ) { |
| 5445 | 5419 | * |
| 5446 | 5420 | * @since 3.0.0 |
| 5447 | 5421 | * |
| 5448 | | * @staticvar string|false $dblq |
| 5449 | | * |
| 5450 | 5422 | * @param string $text The text to be modified. |
| 5451 | 5423 | * @return string The modified text. |
| 5452 | 5424 | */ |
| … |
… |
function get_url_in_content( $content ) { |
| 5619 | 5591 | * |
| 5620 | 5592 | * @since 4.0.0 |
| 5621 | 5593 | * |
| 5622 | | * @staticvar string $spaces |
| 5623 | | * |
| 5624 | 5594 | * @return string The spaces regexp. |
| 5625 | 5595 | */ |
| 5626 | 5596 | function wp_spaces_regexp() { |
| … |
… |
function wp_spaces_regexp() { |
| 5649 | 5619 | * Print the important emoji-related styles. |
| 5650 | 5620 | * |
| 5651 | 5621 | * @since 4.2.0 |
| 5652 | | * |
| 5653 | | * @staticvar bool $printed |
| 5654 | 5622 | */ |
| 5655 | 5623 | function print_emoji_styles() { |
| 5656 | 5624 | static $printed = false; |
| … |
… |
img.emoji { |
| 5684 | 5652 | * Print the inline Emoji detection script if it is not already printed. |
| 5685 | 5653 | * |
| 5686 | 5654 | * @since 4.2.0 |
| 5687 | | * @staticvar bool $printed |
| 5688 | 5655 | */ |
| 5689 | 5656 | function print_emoji_detection_script() { |
| 5690 | 5657 | static $printed = false; |
-
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index a622479be8..74f8ab5227 100644
|
a
|
b
|
function wp_normalize_path( $path ) { |
| 2126 | 2126 | * |
| 2127 | 2127 | * @since 2.5.0 |
| 2128 | 2128 | * |
| 2129 | | * @staticvar string $temp |
| 2130 | | * |
| 2131 | 2129 | * @return string Writable temporary directory. |
| 2132 | 2130 | */ |
| 2133 | 2131 | function get_temp_dir() { |
| … |
… |
function wp_get_upload_dir() { |
| 2261 | 2259 | * @since 2.0.0 |
| 2262 | 2260 | * @uses _wp_upload_dir() |
| 2263 | 2261 | * |
| 2264 | | * @staticvar array $cache |
| 2265 | | * @staticvar array $tested_paths |
| 2266 | | * |
| 2267 | 2262 | * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. |
| 2268 | 2263 | * @param bool $create_dir Optional. Whether to check and create the uploads directory. |
| 2269 | 2264 | * Default true for backward compatibility. |
| … |
… |
function _wp_json_sanity_check( $data, $depth ) { |
| 3986 | 3981 | * |
| 3987 | 3982 | * @see _wp_json_sanity_check() |
| 3988 | 3983 | * |
| 3989 | | * @staticvar bool $use_mb |
| 3990 | | * |
| 3991 | 3984 | * @param string $string The string which is to be converted. |
| 3992 | 3985 | * @return string The checked string. |
| 3993 | 3986 | */ |
| … |
… |
function validate_file( $file, $allowed_files = array() ) { |
| 5350 | 5343 | * |
| 5351 | 5344 | * @since 2.6.0 |
| 5352 | 5345 | * |
| 5353 | | * @staticvar bool $forced |
| 5354 | | * |
| 5355 | 5346 | * @param string|bool $force Optional. Whether to force SSL in admin screens. Default null. |
| 5356 | 5347 | * @return bool True if forced, false if not forced. |
| 5357 | 5348 | */ |
| … |
… |
function wp_guess_url() { |
| 5428 | 5419 | * |
| 5429 | 5420 | * @since 3.3.0 |
| 5430 | 5421 | * |
| 5431 | | * @staticvar bool $_suspend |
| 5432 | | * |
| 5433 | 5422 | * @param bool $suspend Optional. Suspends additions if true, re-enables them if false. |
| 5434 | 5423 | * @return bool The current suspend setting |
| 5435 | 5424 | */ |
| … |
… |
function get_main_network_id() { |
| 5579 | 5568 | * |
| 5580 | 5569 | * @since 3.0.0 |
| 5581 | 5570 | * |
| 5582 | | * @staticvar bool $global_terms |
| 5583 | | * |
| 5584 | 5571 | * @return bool True if multisite and global terms enabled. |
| 5585 | 5572 | */ |
| 5586 | 5573 | function global_terms_enabled() { |
| … |
… |
function _wp_timezone_choice_usort_callback( $a, $b ) { |
| 5720 | 5707 | * @since 2.9.0 |
| 5721 | 5708 | * @since 4.7.0 Added the `$locale` parameter. |
| 5722 | 5709 | * |
| 5723 | | * @staticvar bool $mo_loaded |
| 5724 | | * @staticvar string $locale_loaded |
| 5725 | | * |
| 5726 | 5710 | * @param string $selected_zone Selected timezone. |
| 5727 | 5711 | * @param string $locale Optional. Locale to load the timezones in. Default current site locale. |
| 5728 | 5712 | * @return string |
| … |
… |
function send_frame_options_header() { |
| 6259 | 6243 | * @see wp_kses() |
| 6260 | 6244 | * @see esc_url() |
| 6261 | 6245 | * |
| 6262 | | * @staticvar array $protocols |
| 6263 | | * |
| 6264 | 6246 | * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https', |
| 6265 | 6247 | * 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', |
| 6266 | 6248 | * 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. |
| … |
… |
function wp_allowed_protocols() { |
| 6296 | 6278 | * |
| 6297 | 6279 | * @see https://core.trac.wordpress.org/ticket/19589 |
| 6298 | 6280 | * |
| 6299 | | * @staticvar array $truncate_paths Array of paths to truncate. |
| 6300 | | * |
| 6301 | 6281 | * @param string $ignore_class Optional. A class to ignore all function calls within - useful |
| 6302 | 6282 | * when you want to just give info about the callee. Default null. |
| 6303 | 6283 | * @param int $skip_frames Optional. A number of stack frames to skip - useful for unwinding |
| … |
… |
function _canonical_charset( $charset ) { |
| 6624 | 6604 | * |
| 6625 | 6605 | * @see reset_mbstring_encoding() |
| 6626 | 6606 | * |
| 6627 | | * @staticvar array $encodings |
| 6628 | | * @staticvar bool $overloaded |
| 6629 | | * |
| 6630 | 6607 | * @param bool $reset Optional. Whether to reset the encoding back to a previously-set encoding. |
| 6631 | 6608 | * Default false. |
| 6632 | 6609 | */ |
| … |
… |
function wp_is_uuid( $uuid, $version = null ) { |
| 6964 | 6941 | * |
| 6965 | 6942 | * @since 5.0.3 |
| 6966 | 6943 | * |
| 6967 | | * @staticvar int $id_counter |
| 6968 | | * |
| 6969 | 6944 | * @param string $prefix Prefix for the returned ID. |
| 6970 | 6945 | * @return string Unique ID. |
| 6971 | 6946 | */ |
-
diff --git a/wp-includes/http.php b/wp-includes/http.php
index fc34c170f4..7d71f39cd5 100644
|
a
|
b
|
|
| 15 | 15 | * @since 2.7.0 |
| 16 | 16 | * @access private |
| 17 | 17 | * |
| 18 | | * @staticvar WP_Http $http |
| 19 | | * |
| 20 | 18 | * @return WP_Http HTTP Transport object. |
| 21 | 19 | */ |
| 22 | 20 | function _wp_http_get_object() { |
| … |
… |
function allowed_http_request_hosts( $is_external, $host ) { |
| 620 | 618 | * @since 3.6.0 |
| 621 | 619 | * |
| 622 | 620 | * @global wpdb $wpdb WordPress database abstraction object. |
| 623 | | * @staticvar array $queried |
| 624 | 621 | * |
| 625 | 622 | * @param bool $is_external |
| 626 | 623 | * @param string $host |
-
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 ) { |
| 1151 | 1151 | * @access private |
| 1152 | 1152 | * |
| 1153 | 1153 | * @see _load_textdomain_just_in_time() |
| 1154 | | * @staticvar array $available_translations |
| 1155 | 1154 | * |
| 1156 | 1155 | * @param string $domain Text domain. Unique identifier for retrieving translated strings. |
| 1157 | 1156 | * @param bool $reset Whether to reset the internal cache. Used by the switch to locale functionality. |
| … |
… |
function _get_path_to_translation( $domain, $reset = false ) { |
| 1180 | 1179 | * @access private |
| 1181 | 1180 | * |
| 1182 | 1181 | * @see _get_path_to_translation() |
| 1183 | | * @staticvar array $cached_mofiles |
| 1184 | 1182 | * |
| 1185 | 1183 | * @param string $domain Text domain. Unique identifier for retrieving translated strings. |
| 1186 | 1184 | * @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 ) { |
| 1228 | 1226 | * @since 2.8.0 |
| 1229 | 1227 | * |
| 1230 | 1228 | * @global MO[] $l10n |
| 1231 | | * @staticvar NOOP_Translations $noop_translations |
| 1232 | 1229 | * |
| 1233 | 1230 | * @param string $domain Text domain. Unique identifier for retrieving translated strings. |
| 1234 | 1231 | * @return Translations|NOOP_Translations A Translations instance. |
-
diff --git a/wp-includes/load.php b/wp-includes/load.php
index 1fa88e1c8b..fcddd575d4 100644
|
a
|
b
|
function get_current_network_id() { |
| 1206 | 1206 | * @access private |
| 1207 | 1207 | * |
| 1208 | 1208 | * @global WP_Locale $wp_locale WordPress date and time locale object. |
| 1209 | | * |
| 1210 | | * @staticvar bool $loaded |
| 1211 | 1209 | */ |
| 1212 | 1210 | function wp_load_translations_early() { |
| 1213 | 1211 | global $wp_locale; |
| … |
… |
function wp_load_translations_early() { |
| 1300 | 1298 | * |
| 1301 | 1299 | * @since 4.4.0 |
| 1302 | 1300 | * |
| 1303 | | * @staticvar bool $installing |
| 1304 | | * |
| 1305 | 1301 | * @param bool $is_installing Optional. True to set WP into Installing mode, false to turn Installing mode off. |
| 1306 | 1302 | * Omit this parameter if you only want to fetch the current status. |
| 1307 | 1303 | * @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 ) { |
| 1380 | 1376 | * |
| 1381 | 1377 | * @since 4.6.0 |
| 1382 | 1378 | * |
| 1383 | | * @staticvar array $ini_all |
| 1384 | | * |
| 1385 | 1379 | * @link https://www.php.net/manual/en/function.ini-get-all.php |
| 1386 | 1380 | * |
| 1387 | 1381 | * @param string $setting The name of the ini setting to check. |
-
diff --git a/wp-includes/media.php b/wp-includes/media.php
index e38b5f0e3f..f7c1abbedf 100644
|
a
|
b
|
add_shortcode( 'gallery', 'gallery_shortcode' ); |
| 1982 | 1982 | * |
| 1983 | 1983 | * @since 2.5.0 |
| 1984 | 1984 | * |
| 1985 | | * @staticvar int $instance |
| 1986 | | * |
| 1987 | 1985 | * @param array $attr { |
| 1988 | 1986 | * Attributes of the gallery shortcode. |
| 1989 | 1987 | * |
| … |
… |
function wp_playlist_scripts( $type ) { |
| 2312 | 2310 | * @since 3.9.0 |
| 2313 | 2311 | * |
| 2314 | 2312 | * @global int $content_width |
| 2315 | | * @staticvar int $instance |
| 2316 | 2313 | * |
| 2317 | 2314 | * @param array $attr { |
| 2318 | 2315 | * Array of default playlist attributes. |
| … |
… |
function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) { |
| 2646 | 2643 | * |
| 2647 | 2644 | * @since 3.6.0 |
| 2648 | 2645 | * |
| 2649 | | * @staticvar int $instance |
| 2650 | | * |
| 2651 | 2646 | * @param array $attr { |
| 2652 | 2647 | * Attributes of the audio shortcode. |
| 2653 | 2648 | * |
| … |
… |
function wp_get_video_extensions() { |
| 2860 | 2855 | * @since 3.6.0 |
| 2861 | 2856 | * |
| 2862 | 2857 | * @global int $content_width |
| 2863 | | * @staticvar int $instance |
| 2864 | 2858 | * |
| 2865 | 2859 | * @param array $attr { |
| 2866 | 2860 | * Attributes of the shortcode. |
-
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() { |
| 124 | 124 | * we will have translations loaded and can trigger warnings easily. |
| 125 | 125 | * |
| 126 | 126 | * @since 3.0.0 |
| 127 | | * |
| 128 | | * @staticvar bool $subdomain_error |
| 129 | | * @staticvar bool $subdomain_error_warn |
| 130 | 127 | */ |
| 131 | 128 | function ms_subdomain_constants() { |
| 132 | 129 | static $subdomain_error = null; |
-
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 ) { |
| 1927 | 1927 | * @see term_id_filter |
| 1928 | 1928 | * |
| 1929 | 1929 | * @global wpdb $wpdb WordPress database abstraction object. |
| 1930 | | * @staticvar int $global_terms_recurse |
| 1931 | 1930 | * |
| 1932 | 1931 | * @param int $term_id An ID for a term on the current blog. |
| 1933 | 1932 | * @param string $deprecated Not used. |
| … |
… |
Thanks! |
| 2316 | 2315 | * |
| 2317 | 2316 | * @since 2.8.5 |
| 2318 | 2317 | * |
| 2319 | | * @staticvar bool $forced_content |
| 2320 | | * |
| 2321 | 2318 | * @param bool $force |
| 2322 | 2319 | * @return bool True if forced, false if not forced. |
| 2323 | 2320 | */ |
-
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'; |
| 16 | 16 | * @since 3.0.0 |
| 17 | 17 | * @since 4.7.0 Added the `item_spacing` argument. |
| 18 | 18 | * |
| 19 | | * @staticvar array $menu_id_slugs |
| 20 | | * |
| 21 | 19 | * @param array $args { |
| 22 | 20 | * Optional. Array of nav menu arguments. |
| 23 | 21 | * |
| … |
… |
function walk_nav_menu_tree( $items, $depth, $r ) { |
| 605 | 603 | * @since 3.0.1 |
| 606 | 604 | * @access private |
| 607 | 605 | * |
| 608 | | * @staticvar array $used_ids |
| 609 | 606 | * @param string $id |
| 610 | 607 | * @param object $item |
| 611 | 608 | * @return string |
-
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 ) { |
| 649 | 649 | * |
| 650 | 650 | * @since 3.0.0 |
| 651 | 651 | * |
| 652 | | * @staticvar array $fetched |
| 653 | | * |
| 654 | 652 | * @param int|string|WP_Term $menu Menu ID, slug, name, or object. |
| 655 | 653 | * @param array $args { |
| 656 | 654 | * Optional. Arguments to pass to get_posts(). |
-
diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
index c66beea1dd..c019b91af9 100644
|
a
|
b
|
if ( ! function_exists( 'wp_salt' ) ) : |
| 2235 | 2235 | * |
| 2236 | 2236 | * @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php |
| 2237 | 2237 | * |
| 2238 | | * @staticvar array $cached_salts |
| 2239 | | * @staticvar array $duplicated_keys |
| 2240 | | * |
| 2241 | 2238 | * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce) |
| 2242 | 2239 | * @return string Salt value |
| 2243 | 2240 | */ |
| … |
… |
if ( ! function_exists( 'wp_rand' ) ) : |
| 2472 | 2469 | * @since 4.4.0 Uses PHP7 random_int() or the random_compat library if available. |
| 2473 | 2470 | * |
| 2474 | 2471 | * @global string $rnd_value |
| 2475 | | * @staticvar string $seed |
| 2476 | | * @staticvar bool $use_random_int_functionality |
| 2477 | 2472 | * |
| 2478 | 2473 | * @param int $min Lower limit for the generated number |
| 2479 | 2474 | * @param int $max Upper limit for the generated number |
-
diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
index 2a97c9eba5..25c60a5813 100644
|
a
|
b
|
function plugin_basename( $file ) { |
| 709 | 709 | * |
| 710 | 710 | * @global array $wp_plugin_paths |
| 711 | 711 | * |
| 712 | | * @staticvar string $wp_plugin_path |
| 713 | | * @staticvar string $wpmu_plugin_path |
| 714 | | * |
| 715 | 712 | * @param string $file Known path to the file. |
| 716 | 713 | * @return bool Whether the path was able to be registered. |
| 717 | 714 | */ |
-
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 ) ) : |
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | /** |
| 453 | | * @staticvar string $last_line |
| 454 | | * @staticvar boolean $use_last_line |
| 455 | | * |
| 456 | 453 | * @param resource $f |
| 457 | 454 | * @param string $action |
| 458 | 455 | * @return boolean |
-
diff --git a/wp-includes/revision.php b/wp-includes/revision.php
index 49c8253cbe..9eb74b98a9 100644
|
a
|
b
|
|
| 14 | 14 | * @since 4.5.0 The optional `$autosave` parameter was deprecated and renamed to `$deprecated`. |
| 15 | 15 | * @access private |
| 16 | 16 | * |
| 17 | | * @staticvar array $fields |
| 18 | | * |
| 19 | 17 | * @param array|WP_Post $post Optional. A post array or a WP_Post object being processed |
| 20 | 18 | * for insertion as a post revision. Default empty array. |
| 21 | 19 | * @param bool $deprecated Not used. |
-
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() ) { |
| 3083 | 3083 | * |
| 3084 | 3084 | * @since 2.5.0 |
| 3085 | 3085 | * |
| 3086 | | * @staticvar bool $_defer |
| 3087 | | * |
| 3088 | 3086 | * @param bool $defer Optional. Enable if true, disable if false. |
| 3089 | 3087 | * @return bool Whether term counting is enabled or disabled. |
| 3090 | 3088 | */ |
| … |
… |
function wp_defer_term_counting( $defer = null ) { |
| 3113 | 3111 | * |
| 3114 | 3112 | * @since 2.3.0 |
| 3115 | 3113 | * |
| 3116 | | * @staticvar array $_deferred |
| 3117 | | * |
| 3118 | 3114 | * @param int|array $terms The term_taxonomy_id of the terms. |
| 3119 | 3115 | * @param string $taxonomy The context of the term. |
| 3120 | 3116 | * @param bool $do_deferred Whether to flush the deferred term counts too. Default false. |
-
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index e79474c988..440afcc3b0 100644
|
a
|
b
|
|
| 15 | 15 | * @since 3.4.0 |
| 16 | 16 | * |
| 17 | 17 | * @global array $wp_theme_directories |
| 18 | | * @staticvar array $_themes |
| 19 | 18 | * |
| 20 | 19 | * @param array $args { |
| 21 | 20 | * Optional. The search arguments. |
| … |
… |
function register_theme_directory( $directory ) { |
| 424 | 423 | * @since 2.9.0 |
| 425 | 424 | * |
| 426 | 425 | * @global array $wp_theme_directories |
| 427 | | * @staticvar array $found_themes |
| 428 | 426 | * |
| 429 | 427 | * @param bool $force Optional. Whether to force a new directory scan. Defaults to false. |
| 430 | 428 | * @return array|false Valid themes found |
| … |
… |
function the_header_image_tag( $attr = array() ) { |
| 1254 | 1252 | * @access private |
| 1255 | 1253 | * |
| 1256 | 1254 | * @global array $_wp_default_headers |
| 1257 | | * @staticvar object $_wp_random_header |
| 1258 | 1255 | * |
| 1259 | 1256 | * @return object |
| 1260 | 1257 | */ |
-
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 { |
| 37 | 37 | * @since 4.2.0 Creates a unique HTML ID for the `<select>` element |
| 38 | 38 | * if more than one instance is displayed on the page. |
| 39 | 39 | * |
| 40 | | * @staticvar bool $first_dropdown |
| 41 | | * |
| 42 | 40 | * @param array $args Display arguments including 'before_title', 'after_title', |
| 43 | 41 | * 'before_widget', and 'after_widget'. |
| 44 | 42 | * @param array $instance Settings for the current Categories widget instance. |
-
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 { |
| 69 | 69 | * @since 5.4.0 Creates a unique HTML ID for the `<ul>` element |
| 70 | 70 | * if more than one instance is displayed on the page. |
| 71 | 71 | * |
| 72 | | * @staticvar bool $first_instance |
| 73 | | * |
| 74 | 72 | * @param array $args Display arguments including 'before_title', 'after_title', |
| 75 | 73 | * 'before_widget', and 'after_widget'. |
| 76 | 74 | * @param array $instance Settings for the current Recent Comments widget instance. |