From 6bcbeb858d5222b1aec6869bdb3f37ce575d9bf3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Jul 2016 18:00:32 +0000 Subject: [PATCH] Docs: Correct and expand the docs for the `$post_type` argument of `wp_nav_menu_item_post_type_meta_box()`. Props mehulkaklotar for initial patch. See #37211. Built from https://develop.svn.wordpress.org/trunk@38127 git-svn-id: http://core.svn.wordpress.org/trunk@38068 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/nav-menu.php | 9 ++++++++- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 41f3cdd384..5f312cbd46 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -297,7 +297,14 @@ function wp_nav_menu_item_link_meta_box() { * @global int|string $nav_menu_selected_id * * @param string $object Not used. - * @param string $post_type The post type object. + * @param array $post_type { + * Data that will be used as arguments of the post type meta box. + * + * @type string $id Meta box ID (used in the 'id' attribute for the meta box). + * @type string $title Title of the meta box. + * @type string $callback Function that fills the box with the desired content. + * @type WP_Post_Type $args The current post type object for this menu item meta box. + * } */ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) { global $_nav_menu_placeholder, $nav_menu_selected_id; diff --git a/wp-includes/version.php b/wp-includes/version.php index a4aee6ae1a..ec195d6f5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta4-38126'; +$wp_version = '4.6-beta4-38127'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.