From 747b2c9f1159545c40ca5ebdf242cdf8c1f1b20d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Nov 2023 09:27:23 +0000 Subject: [PATCH] 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: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#phpdoc-tags PHP Documentation Standards: PHPDoc tags]. Props jrf. See #59651. Built from https://develop.svn.wordpress.org/trunk@57065 git-svn-id: http://core.svn.wordpress.org/trunk@56576 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/menu.php | 6 +++--- wp-includes/blocks.php | 2 +- wp-includes/script-loader.php | 2 +- wp-includes/theme-previews.php | 2 +- wp-includes/version.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/menu.php b/wp-admin/includes/menu.php index da1b2ebf53..3cf4a5fdd6 100644 --- a/wp-admin/includes/menu.php +++ b/wp-admin/includes/menu.php @@ -13,8 +13,8 @@ if ( is_network_admin() ) { * * The hook fires before menus and sub-menus are removed based on user privileges. * - * @private * @since 3.1.0 + * @access private */ do_action( '_network_admin_menu' ); } elseif ( is_user_admin() ) { @@ -24,8 +24,8 @@ if ( is_network_admin() ) { * * The hook fires before menus and sub-menus are removed based on user privileges. * - * @private * @since 3.1.0 + * @access private */ do_action( '_user_admin_menu' ); } else { @@ -35,8 +35,8 @@ if ( is_network_admin() ) { * * The hook fires before menus and sub-menus are removed based on user privileges. * - * @private * @since 2.2.0 + * @access private */ do_action( '_admin_menu' ); } diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 18cc02a6ff..d632759b6a 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -1197,8 +1197,8 @@ function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols /** * Callback used for regular expression replacement in filter_block_content(). * - * @private * @since 6.2.1 + * @access private * * @param array $matches Array of preg_replace_callback matches. * @return string Replacement string. diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index c995b7d2e9..41be694281 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -3355,8 +3355,8 @@ function wp_add_editor_classic_theme_styles( $editor_settings ) { * $js = ''; * 'console.error( ... )' === wp_remove_surrounding_empty_script_tags( $js ); * - * @private * @since 6.4.0 + * @access private * * @see wp_print_inline_script_tag() * @see wp_get_inline_script_tag() diff --git a/wp-includes/theme-previews.php b/wp-includes/theme-previews.php index 882f3e0c0f..cc32ac9dd0 100644 --- a/wp-includes/theme-previews.php +++ b/wp-includes/theme-previews.php @@ -64,7 +64,7 @@ function wp_attach_theme_preview_middleware() { * @see https://github.com/WordPress/gutenberg/pull/41836. * * @since 6.3.0 - * @private + * @access private */ function wp_block_theme_activate_nonce() { $nonce_handle = 'switch-theme_' . wp_get_theme_preview_path(); diff --git a/wp-includes/version.php b/wp-includes/version.php index fb662fb064..aeea4ac64c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57063'; +$wp_version = '6.5-alpha-57065'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.