WordPress.org

Make WordPress Core

Ticket #42803: 42803-wp-includes-wp-content.diff

File 42803-wp-includes-wp-content.diff, 29.9 KB (added by birgire, 2 years ago)

The wp-includes/* and wp-content/* classes

  • src/wp-content/themes/twentyfourteen/inc/featured-content.php

    diff --git src/wp-content/themes/twentyfourteen/inc/featured-content.php src/wp-content/themes/twentyfourteen/inc/featured-content.php
    index 424e134..b5efa01 100644
    class Featured_Content { 
    2323         *
    2424         * @since Twenty Fourteen 1.0
    2525         *
    26          * @static
    2726         * @access public
    2827         * @var int
    2928         */
    class Featured_Content { 
    3433         *
    3534         * All custom functionality will be hooked into the "init" action.
    3635         *
    37          * @static
    3836         * @access public
    3937         * @since Twenty Fourteen 1.0
    4038         */
    class Featured_Content { 
    5149         * If no theme support is found there is no need to hook into WordPress.
    5250         * We'll just return early instead.
    5351         *
    54          * @static
    5552         * @access public
    5653         * @since Twenty Fourteen 1.0
    5754         */
    class Featured_Content { 
    10097         * Has to run on wp_loaded so that the preview filters of the Customizer
    10198         * have a chance to alter the value.
    10299         *
    103          * @static
    104100         * @access public
    105101         * @since Twenty Fourteen 1.0
    106102         */
    class Featured_Content { 
    114110        /**
    115111         * Get featured posts.
    116112         *
    117          * @static
    118113         * @access public
    119114         * @since Twenty Fourteen 1.0
    120115         *
    class Featured_Content { 
    146141         *
    147142         * Sets the "featured_content_ids" transient.
    148143         *
    149          * @static
    150144         * @access public
    151145         * @since Twenty Fourteen 1.0
    152146         *
    class Featured_Content { 
    193187        /**
    194188         * Return an array with IDs of posts maked as sticky.
    195189         *
    196          * @static
    197190         * @access public
    198191         * @since Twenty Fourteen 1.0
    199192         *
    class Featured_Content { 
    210203         *
    211204         * @see Featured_Content::validate_settings().
    212205         *
    213          * @static
    214206         * @access public
    215207         * @since Twenty Fourteen 1.0
    216208         */
    class Featured_Content { 
    225217         * Hooked onto the 'pre_get_posts' action, this changes the parameters of
    226218         * the query before it gets any posts.
    227219         *
    228          * @static
    229220         * @access public
    230221         * @since Twenty Fourteen 1.0
    231222         *
    class Featured_Content { 
    273264         *
    274265         * @see Featured_Content::validate_settings().
    275266         *
    276          * @static
    277267         * @access public
    278268         * @since Twenty Fourteen 1.0
    279269         *
    class Featured_Content { 
    296286         *
    297287         * Hooks into the "get_terms" filter.
    298288         *
    299          * @static
    300289         * @access public
    301290         * @since Twenty Fourteen 1.0
    302291         *
    class Featured_Content { 
    344333         *
    345334         * Hooks into the "get_the_terms" filter.
    346335         *
    347          * @static
    348336         * @access public
    349337         * @since Twenty Fourteen 1.0
    350338         *
    class Featured_Content { 
    385373        /**
    386374         * Register custom setting on the Settings -> Reading screen.
    387375         *
    388          * @static
    389376         * @access public
    390377         * @since Twenty Fourteen 1.0
    391378         */
    class Featured_Content { 
    396383        /**
    397384         * Add settings to the Customizer.
    398385         *
    399          * @static
    400386         * @access public
    401387         * @since Twenty Fourteen 1.0
    402388         *
    class Featured_Content { 
    453439        /**
    454440         * Enqueue the tag suggestion script.
    455441         *
    456          * @static
    457442         * @access public
    458443         * @since Twenty Fourteen 1.0
    459444         */
    class Featured_Content { 
    473458         * its name as the first parameter to the function and only that
    474459         * value will be returned.
    475460         *
    476          * @static
    477461         * @access public
    478462         * @since Twenty Fourteen 1.0
    479463         *
    class Featured_Content { 
    506490         * format before saving to the database. This function will also
    507491         * delete the transient set in Featured_Content::get_featured_content().
    508492         *
    509          * @static
    510493         * @access public
    511494         * @since Twenty Fourteen 1.0
    512495         *
  • src/wp-includes/class-http.php

    diff --git src/wp-includes/class-http.php src/wp-includes/class-http.php
    index bead194..f2d77c0 100644
    class WP_Http { 
    430430         * Normalizes cookies for using in Requests.
    431431         *
    432432         * @since 4.6.0
    433          * @static
    434433         *
    435434         * @param array $cookies List of cookies to send with the request.
    436435         * @return Requests_Cookie_Jar Cookie holder object.
    class WP_Http { 
    457456         * specification for compatibility purposes.
    458457         *
    459458         * @since 4.6.0
    460          * @static
    461459         *
    462460         * @param string            $location URL to redirect to.
    463461         * @param array             $headers  Headers for the redirect.
    class WP_Http { 
    539537         *
    540538         * @since 3.2.0
    541539         *
    542          * @static
    543          *
    544540         * @param string $url URL to Request
    545541         * @param array $args Request arguments
    546542         * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
    class WP_Http { 
    633629        /**
    634630         * Parses the responses and splits the parts into headers and body.
    635631         *
    636          * @static
    637632         * @since 2.7.0
    638633         *
    639634         * @param string $strResponse The full response string
    class WP_Http { 
    654649         * If an array is given then it is assumed to be raw header data with numeric keys with the
    655650         * headers as the values. No headers must be passed that were already processed.
    656651         *
    657          * @static
    658652         * @since 2.7.0
    659653         *
    660654         * @param string|array $headers
    class WP_Http { 
    742736         * Edits the array by reference.
    743737         *
    744738         * @since 2.8.0
    745          * @static
    746739         *
    747740         * @param array $r Full array of args passed into ::request()
    748741         */
    class WP_Http { 
    778771         * @link https://tools.ietf.org/html/rfc2616#section-19.4.6 Process for chunked decoding.
    779772         *
    780773         * @since 2.7.0
    781          * @static
    782774         *
    783775         * @param string $body Body content
    784776         * @return string Chunked decoded body on success or raw body on failure.
    class WP_Http { 
    912904         *
    913905         * @since 3.4.0
    914906         *
    915          * @static
    916          *
    917907         * @param string $maybe_relative_path The URL which might be relative
    918908         * @param string $url                 The URL which $maybe_relative_path is relative to
    919909         * @return string An Absolute URL, in a failure condition where the URL cannot be parsed, the relative URL will be returned.
    class WP_Http { 
    987977         * Handles HTTP Redirects and follows them if appropriate.
    988978         *
    989979         * @since 3.7.0
    990          * @static
    991980         *
    992981         * @param string $url The URL which was requested.
    993982         * @param array $args The Arguments which were used to make the request.
    class WP_Http { 
    10491038         * @link http://home.deds.nl/~aeron/regex/ for IPv6 regex
    10501039         *
    10511040         * @since 3.7.0
    1052          * @static
    10531041         *
    10541042         * @param string $maybe_ip A suspected IP address
    10551043         * @return integer|bool Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
  • src/wp-includes/class-oembed.php

    diff --git src/wp-includes/class-oembed.php src/wp-includes/class-oembed.php
    index e9e885d..30df338 100644
    class WP_oEmbed { 
    3030         * A list of an early oEmbed providers.
    3131         *
    3232         * @since 4.0.0
    33          * @static
    3433         * @var array
    3534         */
    3635        public static $early_providers = array();
    class WP_oEmbed { 
    290289         *
    291290         * The just-in-time addition is for the benefit of the {@see 'oembed_providers'} filter.
    292291         *
    293          * @static
    294292         * @since 4.0.0
    295293         *
    296294         * @see wp_oembed_add_provider()
    class WP_oEmbed { 
    318316         * The just-in-time removal is for the benefit of the {@see 'oembed_providers'} filter.
    319317         *
    320318         * @since 4.0.0
    321          * @static
    322319         *
    323320         * @see wp_oembed_remove_provider()
    324321         *
  • src/wp-includes/class-wp-comment.php

    diff --git src/wp-includes/class-wp-comment.php src/wp-includes/class-wp-comment.php
    index e93d4c4..f631444 100644
    final class WP_Comment { 
    162162         * Retrieves a WP_Comment instance.
    163163         *
    164164         * @since 4.4.0
    165          * @static
    166165         *
    167166         * @global wpdb $wpdb WordPress database abstraction object.
    168167         *
  • src/wp-includes/class-wp-customize-control.php

    diff --git src/wp-includes/class-wp-customize-control.php src/wp-includes/class-wp-customize-control.php
    index 398d089..1a9df6d 100644
    class WP_Customize_Control { 
    2121         *
    2222         * @since 4.1.0
    2323         *
    24          * @static
    2524         * @var int
    2625         */
    2726        protected static $instance_count = 0;
  • src/wp-includes/class-wp-customize-panel.php

    diff --git src/wp-includes/class-wp-customize-panel.php src/wp-includes/class-wp-customize-panel.php
    index f234f32..ae1ab33 100644
    class WP_Customize_Panel { 
    2525         *
    2626         * @since 4.1.0
    2727         *
    28          * @static
    2928         * @var int
    3029         */
    3130        protected static $instance_count = 0;
  • src/wp-includes/class-wp-customize-section.php

    diff --git src/wp-includes/class-wp-customize-section.php src/wp-includes/class-wp-customize-section.php
    index fa406b1..ae65d74 100644
    class WP_Customize_Section { 
    2525         *
    2626         * @since 4.1.0
    2727         *
    28          * @static
    2928         * @var int
    3029         */
    3130        protected static $instance_count = 0;
  • src/wp-includes/class-wp-customize-setting.php

    diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
    index ae768fe..a5cbabb 100644
    class WP_Customize_Setting { 
    135135         * Cache of multidimensional values to improve performance.
    136136         *
    137137         * @since 4.4.0
    138          * @static
    139138         * @var array
    140139         */
    141140        protected static $aggregated_multidimensionals = array();
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index 1b92ac5..f4fef83 100644
    final class _WP_Editors { 
    3535        /**
    3636         * Parse default arguments for the editor instance.
    3737         *
    38          * @static
    3938         * @param string $editor_id ID for the current editor instance.
    4039         * @param array  $settings {
    4140         *     Array of editor arguments.
    final class _WP_Editors { 
    148147        /**
    149148         * Outputs the HTML for a single instance of the editor.
    150149         *
    151          * @static
    152150         * @param string $content The initial content of the editor.
    153151         * @param string $editor_id ID for the textarea and TinyMCE and Quicktags instances (can contain only ASCII letters and numbers).
    154152         * @param array $settings See _WP_Editors()::parse_settings() for description.
    final class _WP_Editors { 
    307305        }
    308306
    309307        /**
    310          * @static
    311          *
    312308         * @global string $tinymce_version
    313309         *
    314310         * @param string $editor_id
    final class _WP_Editors { 
    733729        }
    734730
    735731        /**
    736          * @static
    737732         * @param array $init
    738733         * @return string
    739734         */
    final class _WP_Editors { 
    760755        }
    761756
    762757        /**
    763          * @static
    764          *
    765758         * @param bool $default_scripts Optional. Whether default scripts should be enqueued. Default false.
    766759         */
    767760        public static function enqueue_scripts( $default_scripts = false ) {
    final class _WP_Editors { 
    13381331         * Translates the default TinyMCE strings and returns them as JSON encoded object ready to be loaded with tinymce.addI18n(),
    13391332         * or as JS snippet that should run after tinymce.js is loaded.
    13401333         *
    1341          * @static
    13421334         * @param string $mce_locale The locale used for the editor.
    13431335         * @param bool $json_only optional Whether to include the JavaScript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone().
    13441336         * @return string Translation object, JSON encoded.
    final class _WP_Editors { 
    13981390         *
    13991391         * @since 4.8.0
    14001392         *
    1401          * @static
    14021393         * @global string $tinymce_version
    14031394         * @global bool   $concatenate_scripts
    14041395         * @global bool   $compress_scripts
    final class _WP_Editors { 
    14391430        /**
    14401431         * Print (output) the TinyMCE configuration and initialization scripts.
    14411432         *
    1442          * @static
    14431433         * @global string $tinymce_version
    14441434         */
    14451435        public static function editor_js() {
    final class _WP_Editors { 
    15951585         *
    15961586         * @since 3.2.0
    15971587         * @deprecated 4.3.0
    1598          *
    1599          * @static
    16001588         */
    16011589        public static function wp_fullscreen_html() {
    16021590                _deprecated_function( __FUNCTION__, '4.3.0' );
    final class _WP_Editors { 
    16071595         *
    16081596         * @since 3.1.0
    16091597         *
    1610          * @static
    16111598         * @param array $args Optional. Accepts 'pagenum' and 's' (search) arguments.
    16121599         * @return false|array Results.
    16131600         */
    final class _WP_Editors { 
    16971684         * Dialog for internal linking.
    16981685         *
    16991686         * @since 3.1.0
    1700          *
    1701          * @static
    17021687         */
    17031688        public static function wp_link_dialog() {
    17041689                // Run once
  • src/wp-includes/class-wp-hook.php

    diff --git src/wp-includes/class-wp-hook.php src/wp-includes/class-wp-hook.php
    index 9472c0b..efb1360 100644
    final class WP_Hook implements Iterator, ArrayAccess { 
    356356         * Normalizes filters set up before WordPress has initialized to WP_Hook objects.
    357357         *
    358358         * @since 4.7.0
    359          * @static
    360359         *
    361360         * @param array $filters Filters to normalize.
    362361         * @return WP_Hook[] Array of normalized filters.
  • src/wp-includes/class-wp-http-curl.php

    diff --git src/wp-includes/class-wp-http-curl.php src/wp-includes/class-wp-http-curl.php
    index 2704735..59e30d6 100644
    class WP_Http_Curl { 
    373373        /**
    374374         * Determines whether this class can be used for retrieving a URL.
    375375         *
    376          * @static
    377376         * @since 2.7.0
    378377         *
    379378         * @param array $args Optional. Array of request arguments. Default empty array.
  • src/wp-includes/class-wp-http-encoding.php

    diff --git src/wp-includes/class-wp-http-encoding.php src/wp-includes/class-wp-http-encoding.php
    index 4b16319..0315f62 100644
    class WP_Http_Encoding { 
    2323         *
    2424         * @since 2.8.0
    2525         *
    26          * @static
    27          *
    2826         * @param string $raw String to compress.
    2927         * @param int $level Optional, default is 9. Compression level, 9 is highest.
    3028         * @param string $supports Optional, not used. When implemented it will choose the right compression based on what the server supports.
    class WP_Http_Encoding { 
    4442         *
    4543         * @since 2.8.0
    4644         *
    47          * @static
    48          *
    4945         * @param string $compressed String to decompress.
    5046         * @param int $length The optional length of the compressed data.
    5147         * @return string|bool False on failure.
    class WP_Http_Encoding { 
    9692         * @link https://secure.php.net/manual/en/function.gzinflate.php#70875
    9793         * @link https://secure.php.net/manual/en/function.gzinflate.php#77336
    9894         *
    99          * @static
    100          *
    10195         * @param string $gzData String to decompress.
    10296         * @return string|bool False on failure.
    10397         */
    class WP_Http_Encoding { 
    142136         *
    143137         * @since 2.8.0
    144138         *
    145          * @static
    146          *
    147139         * @param string $url
    148140         * @param array  $args
    149141         * @return string Types of encoding to accept.
    class WP_Http_Encoding { 
    194186         *
    195187         * @since 2.8.0
    196188         *
    197          * @static
    198          *
    199189         * @return string Content-Encoding string to send in the header.
    200190         */
    201191        public static function content_encoding() {
    class WP_Http_Encoding { 
    207197         *
    208198         * @since 2.8.0
    209199         *
    210          * @static
    211          *
    212200         * @param array|string $headers All of the available headers.
    213201         * @return bool
    214202         */
    class WP_Http_Encoding { 
    233221         *
    234222         * @since 2.8.0
    235223         *
    236          * @static
    237          *
    238224         * @return bool
    239225         */
    240226        public static function is_available() {
  • src/wp-includes/class-wp-http-streams.php

    diff --git src/wp-includes/class-wp-http-streams.php src/wp-includes/class-wp-http-streams.php
    index 2ed6412..9774d32 100644
    class WP_Http_Streams { 
    362362         * IP Address support is included if the request is being made to an IP address.
    363363         *
    364364         * @since 3.7.0
    365          * @static
    366365         *
    367366         * @param stream $stream The PHP Stream which the SSL request is being made over
    368367         * @param string $host The hostname being requested
    class WP_Http_Streams { 
    424423        /**
    425424         * Determines whether this class can be used for retrieving a URL.
    426425         *
    427          * @static
    428426         * @since 2.7.0
    429427         * @since 3.7.0 Combined with the fsockopen transport and switched to stream_socket_client().
    430428         *
  • src/wp-includes/class-wp-image-editor-gd.php

    diff --git src/wp-includes/class-wp-image-editor-gd.php src/wp-includes/class-wp-image-editor-gd.php
    index c8d1ed2..32f33df 100644
    class WP_Image_Editor_GD extends WP_Image_Editor { 
    3333         *
    3434         * @since 3.5.0
    3535         *
    36          * @static
    37          *
    3836         * @param array $args
    3937         * @return bool
    4038         */
    class WP_Image_Editor_GD extends WP_Image_Editor { 
    5957         *
    6058         * @since 3.5.0
    6159         *
    62          * @static
    63          *
    6460         * @param string $mime_type
    6561         * @return bool
    6662         */
  • src/wp-includes/class-wp-image-editor-imagick.php

    diff --git src/wp-includes/class-wp-image-editor-imagick.php src/wp-includes/class-wp-image-editor-imagick.php
    index 5db6fc4..abb2150 100644
    class WP_Image_Editor_Imagick extends WP_Image_Editor { 
    3737         *
    3838         * @since 3.5.0
    3939         *
    40          * @static
    41          *
    4240         * @param array $args
    4341         * @return bool
    4442         */
    class WP_Image_Editor_Imagick extends WP_Image_Editor { 
    9896         *
    9997         * @since 3.5.0
    10098         *
    101          * @static
    102          *
    10399         * @param string $mime_type
    104100         * @return bool
    105101         */
  • src/wp-includes/class-wp-image-editor.php

    diff --git src/wp-includes/class-wp-image-editor.php src/wp-includes/class-wp-image-editor.php
    index 1bf80e3..9af795a 100644
    abstract class WP_Image_Editor { 
    3434         *
    3535         * @since 3.5.0
    3636         *
    37          * @static
    3837         * @abstract
    3938         *
    4039         * @param array $args
    abstract class WP_Image_Editor { 
    5049         *
    5150         * @since 3.5.0
    5251         *
    53          * @static
    5452         * @abstract
    5553         *
    5654         * @param string $mime_type
    abstract class WP_Image_Editor { 
    429427         *
    430428         * @since 3.5.0
    431429         *
    432          * @static
    433          *
    434430         * @param string $extension
    435431         * @return string|false
    436432         */
    abstract class WP_Image_Editor { 
    457453         *
    458454         * @since 3.5.0
    459455         *
    460          * @static
    461          *
    462456         * @param string $mime_type
    463457         * @return string|false
    464458         */
  • src/wp-includes/class-wp-matchesmapregex.php

    diff --git src/wp-includes/class-wp-matchesmapregex.php src/wp-includes/class-wp-matchesmapregex.php
    index 935fb6c..86e3889 100644
    class WP_MatchesMapRegex { 
    5757         *
    5858         * static helper function to ease use
    5959         *
    60          * @static
    61          *
    6260         * @param string $subject subject
    6361         * @param array  $matches data used for substitution
    6462         * @return string
  • src/wp-includes/class-wp-network.php

    diff --git src/wp-includes/class-wp-network.php src/wp-includes/class-wp-network.php
    index 621c5ce..89026c7 100644
    class WP_Network { 
    318318         * requested site address.
    319319         *
    320320         * @since 4.4.0
    321          * @static
    322321         *
    323322         * @param string   $domain   Domain to check.
    324323         * @param string   $path     Path to check.
  • src/wp-includes/class-wp-post.php

    diff --git src/wp-includes/class-wp-post.php src/wp-includes/class-wp-post.php
    index 2e3a32a..231fa4c 100644
    final class WP_Post { 
    222222         * Retrieve WP_Post instance.
    223223         *
    224224         * @since 3.5.0
    225          * @static
    226225         *
    227226         * @global wpdb $wpdb WordPress database abstraction object.
    228227         *
  • src/wp-includes/class-wp-session-tokens.php

    diff --git src/wp-includes/class-wp-session-tokens.php src/wp-includes/class-wp-session-tokens.php
    index 2878cca..bfc593d 100644
    abstract class WP_Session_Tokens { 
    4040         * the session manager for a subclass of `WP_Session_Tokens`.
    4141         *
    4242         * @since 4.0.0
    43          * @static
    4443         *
    4544         * @param int $user_id User whose session to manage.
    4645         * @return WP_User_Meta_Session_Tokens WP_User_Meta_Session_Tokens class instance by default.
    abstract class WP_Session_Tokens { 
    223222         * Destroy all session tokens for all users.
    224223         *
    225224         * @since 4.0.0
    226          * @static
    227225         */
    228226        final public static function destroy_all_for_all_users() {
    229227                /** This filter is documented in wp-includes/class-wp-session-tokens.php */
    abstract class WP_Session_Tokens { 
    294292         * This static method should destroy all session tokens for all users.
    295293         *
    296294         * @since 4.0.0
    297          * @static
    298295         */
    299296        public static function drop_sessions() {}
    300297}
  • src/wp-includes/class-wp-site.php

    diff --git src/wp-includes/class-wp-site.php src/wp-includes/class-wp-site.php
    index 8a72c33..8698ac5 100644
    final class WP_Site { 
    145145        /**
    146146         * Retrieves a site from the database by its ID.
    147147         *
    148          * @static
    149148         * @since 4.5.0
    150149         *
    151150         * @global wpdb $wpdb WordPress database abstraction object.
  • src/wp-includes/class-wp-tax-query.php

    diff --git src/wp-includes/class-wp-tax-query.php src/wp-includes/class-wp-tax-query.php
    index b818b8f..114263c 100644
    class WP_Tax_Query { 
    4444         *
    4545         * @since 3.2.0
    4646         *
    47          * @static
    4847         * @var string
    4948         */
    5049        private static $no_results = array(
    class WP_Tax_Query { 
    224223         *
    225224         * @since 4.1.0
    226225         *
    227          * @static
    228          *
    229226         * @param array $query Tax query arguments.
    230227         * @return bool Whether the query clause is a first-order clause.
    231228         */
    class WP_Tax_Query { 
    238235         *
    239236         * @since 3.1.0
    240237         *
    241          * @static
    242          *
    243238         * @param string $primary_table     Database table where the object being filtered is stored (eg wp_users).
    244239         * @param string $primary_id_column ID column for the filtered object in $primary_table.
    245240         * @return array {
  • src/wp-includes/class-wp-term.php

    diff --git src/wp-includes/class-wp-term.php src/wp-includes/class-wp-term.php
    index 02dfacc..df74705 100644
    final class WP_Term { 
    102102         * Retrieve WP_Term instance.
    103103         *
    104104         * @since 4.4.0
    105          * @static
    106105         *
    107106         * @global wpdb $wpdb WordPress database abstraction object.
    108107         *
  • src/wp-includes/class-wp-theme.php

    diff --git src/wp-includes/class-wp-theme.php src/wp-includes/class-wp-theme.php
    index 683065c..b2207c8 100644
    final class WP_Theme implements ArrayAccess { 
    2121        /**
    2222         * Headers for style.css files.
    2323         *
    24          * @static
    2524         * @var array
    2625         */
    2726        private static $file_headers = array(
    final class WP_Theme implements ArrayAccess { 
    4140        /**
    4241         * Default themes.
    4342         *
    44          * @static
    4543         * @var array
    4644         */
    4745        private static $default_themes = array(
    final class WP_Theme implements ArrayAccess { 
    6058        /**
    6159         * Renamed theme tags.
    6260         *
    63          * @static
    6461         * @var array
    6562         */
    6663        private static $tag_map = array(
    final class WP_Theme implements ArrayAccess { 
    158155         *
    159156         * Default is false. Can be set with the {@see 'wp_cache_themes_persistently'} filter.
    160157         *
    161          * @static
    162158         * @var bool
    163159         */
    164160        private static $persistently_cache;
    final class WP_Theme implements ArrayAccess { 
    168164         *
    169165         * By default the bucket is not cached, so this value is useless.
    170166         *
    171          * @static
    172167         * @var bool
    173168         */
    174169        private static $cache_expiration = 1800;
    final class WP_Theme implements ArrayAccess { 
    12101205         *
    12111206         * @since 3.4.0
    12121207         *
    1213          * @static
    1214          *
    12151208         * @param string            $path          Absolute path to search.
    12161209         * @param array|string|null $extensions    Optional. Array of extensions to find, string of a single extension,
    12171210         *                                         or null for all extensions. Default null.
    final class WP_Theme implements ArrayAccess { 
    13621355         *
    13631356         * @since 3.4.0
    13641357         *
    1365          * @static
    1366          *
    13671358         * @param int $blog_id Optional. ID of the site. Defaults to the current site.
    13681359         * @return array Array of stylesheet names.
    13691360         */
    final class WP_Theme implements ArrayAccess { 
    13881379         *
    13891380         * @since 3.4.0
    13901381         *
    1391          * @static
    1392          *
    13931382         * @staticvar array $allowed_themes
    13941383         *
    13951384         * @return array Array of stylesheet names.
    final class WP_Theme implements ArrayAccess { 
    14171406         *
    14181407         * @since 3.4.0
    14191408         *
    1420          * @static
    1421          *
    14221409         * @staticvar array $allowed_themes
    14231410         *
    14241411         * @param int $blog_id Optional. ID of the site. Defaults to the current site.
    final class WP_Theme implements ArrayAccess { 
    14981485         * Enables a theme for all sites on the current network.
    14991486         *
    15001487         * @since 4.6.0
    1501          * @static
    15021488         *
    15031489         * @param string|array $stylesheets Stylesheet name or array of stylesheet names.
    15041490         */
    final class WP_Theme implements ArrayAccess { 
    15231509         * Disables a theme for all sites on the current network.
    15241510         *
    15251511         * @since 4.6.0
    1526          * @static
    15271512         *
    15281513         * @param string|array $stylesheets Stylesheet name or array of stylesheet names.
    15291514         */
    final class WP_Theme implements ArrayAccess { 
    15511536         *
    15521537         * @since 3.4.0
    15531538         *
    1554          * @static
    1555          *
    15561539         * @param array $themes Array of themes to sort (passed by reference).
    15571540         */
    15581541        public static function sort_by_name( &$themes ) {
    final class WP_Theme implements ArrayAccess { 
    15711554         *
    15721555         * @since 3.4.0
    15731556         *
    1574          * @static
    1575          *
    15761557         * @param string $a First name.
    15771558         * @param string $b Second name.
    15781559         * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally.
    final class WP_Theme implements ArrayAccess { 
    15871568         *
    15881569         * @since 3.4.0
    15891570         *
    1590          * @static
    1591          *
    15921571         * @param string $a First name.
    15931572         * @param string $b Second name.
    15941573         * @return int Negative if `$a` falls lower in the natural order than `$b`. Zero if they fall equally.
  • src/wp-includes/class-wp-user-meta-session-tokens.php

    diff --git src/wp-includes/class-wp-user-meta-session-tokens.php src/wp-includes/class-wp-user-meta-session-tokens.php
    index 1cb5cca..c144a7a 100644
    class WP_User_Meta_Session_Tokens extends WP_Session_Tokens { 
    124124         * Destroy all session tokens for all users.
    125125         *
    126126         * @since 4.0.0
    127          * @static
    128127         */
    129128        public static function drop_sessions() {
    130129                delete_metadata( 'user', 0, 'session_tokens', false, true );
  • src/wp-includes/class-wp-user.php

    diff --git src/wp-includes/class-wp-user.php src/wp-includes/class-wp-user.php
    index f67780f..c677085 100644
    class WP_User { 
    101101        private $site_id = 0;
    102102
    103103        /**
    104          * @static
    105104         * @since 3.3.0
    106105         * @var array
    107106         */
    class WP_User { 
    180179         * @since 3.3.0
    181180         * @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
    182181         *
    183          * @static
    184          *
    185182         * @global wpdb $wpdb WordPress database abstraction object.
    186183         *
    187184         * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
  • src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    diff --git src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
    index 545c2f6..1049acf 100644
    class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting { 
    538538         * Re-apply the tail logic also applied on $items by wp_get_nav_menu_items().
    539539         *
    540540         * @since 4.3.0
    541          * @static
    542541         *
    543542         * @see wp_get_nav_menu_items()
    544543         *
  • src/wp-includes/pomo/mo.php

    diff --git src/wp-includes/pomo/mo.php src/wp-includes/pomo/mo.php
    index 6ec3524..4dfd672 100644
    if ( ! class_exists( 'MO', false ) ) : 
    295295                 * Build a Translation_Entry from original string and translation strings,
    296296                 * found in a MO file
    297297                 *
    298                  * @static
    299298                 * @param string $original original string to translate from MO file. Might contain
    300299                 *  0x04 as context separator or 0x00 as singular/plural separator
    301300                 * @param string $translation translation string from MO file. Might contain
  • src/wp-includes/pomo/po.php

    diff --git src/wp-includes/pomo/po.php src/wp-includes/pomo/po.php
    index 17e1d71..f5ddf5f 100644
    if ( ! class_exists( 'PO', false ) ) : 
    100100                /**
    101101                 * Formats a string in PO-style
    102102                 *
    103                  * @static
    104103                 * @param string $string the string to format
    105104                 * @return string the poified string
    106105                 */
    if ( ! class_exists( 'PO', false ) ) : 
    131130                /**
    132131                 * Gives back the original string from a PO-formatted string
    133132                 *
    134                  * @static
    135133                 * @param string $string PO-formatted string
    136134                 * @return string enascaped string
    137135                 */
    if ( ! class_exists( 'PO', false ) ) : 
    173171                 * Inserts $with in the beginning of every new line of $string and
    174172                 * returns the modified string
    175173                 *
    176                  * @static
    177174                 * @param string $string prepend lines in this string
    178175                 * @param string $with prepend lines with this string
    179176                 */
    if ( ! class_exists( 'PO', false ) ) : 
    211208                /**
    212209                 * Builds a string from the entry for inclusion in PO file
    213210                 *
    214                  * @static
    215211                 * @param Translation_Entry $entry the entry to convert to po string (passed by reference).
    216212                 * @return false|string PO-style formatted string for the entry or
    217213                 *  false if the entry is empty
  • src/wp-includes/rest-api/class-wp-rest-request.php

    diff --git src/wp-includes/rest-api/class-wp-rest-request.php src/wp-includes/rest-api/class-wp-rest-request.php
    index 49e119d..f4981e9 100644
    class WP_REST_Request implements ArrayAccess { 
    174174         * @link https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
    175175         *
    176176         * @since 4.4.0
    177          * @static
    178177         *
    179178         * @param string $key Header name.
    180179         * @return string Canonicalized name.
    class WP_REST_Request implements ArrayAccess { 
    953952        /**
    954953         * Retrieves a WP_REST_Request object from a full URL.
    955954         *
    956          * @static
    957955         * @since 4.5.0
    958956         *
    959957         * @param string $url URL with protocol, domain, path and query args.
  • src/wp-includes/rest-api/class-wp-rest-server.php

    diff --git src/wp-includes/rest-api/class-wp-rest-server.php src/wp-includes/rest-api/class-wp-rest-server.php
    index fbc47da..bdb6f0f 100644
    class WP_REST_Server { 
    459459         * direct output.
    460460         *
    461461         * @since 4.4.0
    462          * @static
    463462         *
    464463         * @param WP_REST_Response $response Response to extract links from.
    465464         * @return array Map of link relation to list of link hashes.
    class WP_REST_Server { 
    492491         * direct output.
    493492         *
    494493         * @since 4.5.0
    495          * @static
    496494         *
    497495         * @param WP_REST_Response $response Response to extract links from.
    498496         * @return array Map of link relation to list of link hashes.
  • src/wp-includes/widgets/class-wp-widget-calendar.php

    diff --git src/wp-includes/widgets/class-wp-widget-calendar.php src/wp-includes/widgets/class-wp-widget-calendar.php
    index c19a3a2..dd56e6f 100644
    class WP_Widget_Calendar extends WP_Widget { 
    2020         *
    2121         * @since 4.4.0
    2222         *
    23          * @static
    2423         * @var int
    2524         */
    2625        private static $instance = 0;