From 761bb19a5baff7638e592a2a883094bfbce7e716 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 23 Jan 2026 18:14:35 +0000 Subject: [PATCH] Docs: Add missing descriptions to `wp_nav_menu_max_depth()` and `do_core_upgrade()`. Developed in https://github.com/WordPress/wordpress-develop/pull/10570 Follow-up to [61512], [32642], [32654]. Props rejaulalomkhan, westonruter, huzaifaalmesbah. See #64224. Built from https://develop.svn.wordpress.org/trunk@61520 git-svn-id: http://core.svn.wordpress.org/trunk@60831 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/nav-menus.php | 8 +++++--- wp-admin/update-core.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index f42f51e266..b5328c4b62 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -672,12 +672,14 @@ if ( is_nav_menu( $nav_menu_selected_id ) ) { } /** + * Adds a CSS class to display the max depth of the navigation menu. + * * @since 3.0.0 * - * @global int $_wp_nav_menu_max_depth + * @global int $_wp_nav_menu_max_depth Maximum depth of the navigation menu. * - * @param string $classes - * @return string + * @param string $classes Existing CSS classes for the body tag. + * @return string Modified CSS classes including the menu max depth class. */ function wp_nav_menu_max_depth( $classes ) { global $_wp_nav_menu_max_depth; diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 513aa1498a..f1cd0c0a66 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -840,7 +840,7 @@ function list_translation_updates() { * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * - * @param bool $reinstall + * @param bool $reinstall Optional. Whether to reinstall WordPress. Default false. */ function do_core_upgrade( $reinstall = false ) { global $wp_filesystem; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8c228582c2..d0ff3a9db7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61519'; +$wp_version = '7.0-alpha-61520'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.