Skip to content

Commit 1b3b45f

Browse files
committed
Docs: Add missing descriptions to wp_nav_menu_max_depth() and do_core_upgrade().
Developed in WordPress#10570 Follow-up to [61512], [32642], [32654]. Props rejaulalomkhan, westonruter, huzaifaalmesbah. See #64224. git-svn-id: https://develop.svn.wordpress.org/trunk@61520 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 003e8e1 commit 1b3b45f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/wp-admin/nav-menus.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,14 @@
672672
}
673673

674674
/**
675+
* Adds a CSS class to display the max depth of the navigation menu.
676+
*
675677
* @since 3.0.0
676678
*
677-
* @global int $_wp_nav_menu_max_depth
679+
* @global int $_wp_nav_menu_max_depth Maximum depth of the navigation menu.
678680
*
679-
* @param string $classes
680-
* @return string
681+
* @param string $classes Existing CSS classes for the body tag.
682+
* @return string Modified CSS classes including the menu max depth class.
681683
*/
682684
function wp_nav_menu_max_depth( $classes ) {
683685
global $_wp_nav_menu_max_depth;

src/wp-admin/update-core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ function list_translation_updates() {
840840
*
841841
* @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
842842
*
843-
* @param bool $reinstall
843+
* @param bool $reinstall Optional. Whether to reinstall WordPress. Default false.
844844
*/
845845
function do_core_upgrade( $reinstall = false ) {
846846
global $wp_filesystem;

0 commit comments

Comments
 (0)