diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 7834abe6f2..3053971e48 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -1454,6 +1454,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, // For negative or `0` positions, prepend the submenu. array_unshift( $submenu[ $parent_slug ], $new_sub_menu ); } else { + $position = absint( $position ); // Grab all of the items before the insertion point. $before_items = array_slice( $submenu[ $parent_slug ], 0, $position, true ); // Grab all of the items after the insertion point. diff --git a/wp-includes/version.php b/wp-includes/version.php index b6cde8f933..370d7f075b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53554'; +$wp_version = '6.1-alpha-53555'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.