WordPress.org

Make WordPress Core

Changeset 42745


Ignore:
Timestamp:
02/25/2018 08:05:09 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove @static notations from method DocBlocks in wp-admin/* classes.

This tag has been used in the past, but should no longer be used. Just using the static keyword in code is enough for PhpDocumentor on PHP5+ to recognize static variables and methods, and PhpDocumentor will mark them as static.

Props birgire.
See #42803.

Location:
trunk/src/wp-admin/includes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r42343 r42745  
    243243     * @since 3.7.0
    244244     *
    245      * @static
    246      *
    247245     * @param string $offered_ver The offered version, of the format x.y.z.
    248246     * @return bool True if we should update to the offered version, otherwise false.
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r42343 r42745  
    4242     *
    4343     * @since 3.7.0
    44      * @static
    4544     *
    4645     * @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
  • trunk/src/wp-admin/includes/class-wp-internal-pointers.php

    r42343 r42745  
    2424     * Individual pointers (e.g. wp390_widgets) can be disabled using the following:
    2525     *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
    26      *
    27      * @static
    2826     *
    2927     * @param string $hook_suffix The current admin page.
     
    103101     * @since 3.3.0
    104102     *
    105      * @static
    106      *
    107103     * @param string $pointer_id The pointer ID.
    108104     * @param string $selector The HTML elements, on which the pointer should be attached.
     
    161157     * @since 3.3.0
    162158     *
    163      * @static
    164      *
    165159     * @param int $user_id User ID.
    166160     */
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r42343 r42745  
    187187     *
    188188     * @since 3.3.0
    189      *
    190      * @static
    191189     *
    192190     * @global string $hook_suffix
     
    422420     * @since 3.3.0
    423421     *
    424      * @static
    425      *
    426422     * @param WP_Screen $screen A screen object.
    427423     * @param string $help Help text.
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r42343 r42745  
    847847     *
    848848     * @since 4.5.0
    849      * @static
    850849     *
    851850     * @param string $lock_name       The name of this unique lock.
     
    893892     *
    894893     * @since 4.5.0
    895      * @static
    896894     *
    897895     * @see WP_Upgrader::create_lock()
Note: See TracChangeset for help on using the changeset viewer.