Make WordPress Core

Changeset 57065 for trunk


Ignore:
Timestamp:
11/06/2023 09:25:02 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Replace incorrect @private tags.

The @private tag does not exist and is not supported. To indicate that something is private when in the global namespace, @access private should be used instead.

Reference: ​PHP Documentation Standards: PHPDoc tags.

Props jrf.
See #59651.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/menu.php

    r56549 r57065  
    1414         * The hook fires before menus and sub-menus are removed based on user privileges.
    1515         *
    16          * @private
    1716         * @since 3.1.0
     17         * @access private
    1818         */
    1919        do_action( '_network_admin_menu' );
    … …  
    2525         * The hook fires before menus and sub-menus are removed based on user privileges.
    2626         *
    27          * @private
    2827         * @since 3.1.0
     28         * @access private
    2929         */
    3030        do_action( '_user_admin_menu' );
    … …  
    3636         * The hook fires before menus and sub-menus are removed based on user privileges.
    3737         *
    38          * @private
    3938         * @since 2.2.0
     39         * @access private
    4040         */
    4141        do_action( '_admin_menu' );
  • trunk/src/wp-includes/blocks.php

    r57053 r57065  
    11981198 * Callback used for regular expression replacement in filter_block_content().
    11991199 *
    1200  * @private
    12011200 * @since 6.2.1
     1201 * @access private
    12021202 *
    12031203 * @param array $matches Array of preg_replace_callback matches.
  • trunk/src/wp-includes/script-loader.php

    r56754 r57065  
    33563356 *     'console.error( ... )' === wp_remove_surrounding_empty_script_tags( $js );
    33573357 *
    3358  * @private
    33593358 * @since 6.4.0
     3359 * @access private
    33603360 *
    33613361 * @see wp_print_inline_script_tag()
  • trunk/src/wp-includes/theme-previews.php

    r56757 r57065  
    6565 *
    6666 * @since 6.3.0
    67  * @private
     67 * @access private
    6868 */
    6969function wp_block_theme_activate_nonce() {
Note: See TracChangeset for help on using the changeset viewer.