From 0c1b988a639ceedca9e0bd7eac9d87726117e1bd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Jul 2016 19:23:56 +0000 Subject: [PATCH] Docs: In meta box functions, clarify that "Meta box ID" refers to the `id` attribute of the meta box and not a numeric ID. Fixes #37211. git-svn-id: https://develop.svn.wordpress.org/trunk@38131 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 8 ++++---- src/wp-admin/includes/nav-menu.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 753fb056d2..89e17671c9 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -13,7 +13,7 @@ * @param array $args { * Array of arguments for building the post submit meta box. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args Extra meta box arguments. @@ -353,7 +353,7 @@ function attachment_submit_meta_box( $post ) { * @param array $box { * Post formats meta box arguments. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args Extra meta box arguments. @@ -394,7 +394,7 @@ function post_format_meta_box( $post, $box ) { * @param array $box { * Tags meta box arguments. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args { @@ -455,7 +455,7 @@ function post_tags_meta_box( $post, $box ) { * @param array $box { * Categories meta box arguments. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args { diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index aa5636ba95..9b0a7bc266 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -300,7 +300,7 @@ function wp_nav_menu_item_link_meta_box() { * @param array $box { * Post type menu item meta box arguments. * - * @type string $id Meta box ID (used in the 'id' attribute for the meta box). + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type string $callback Meta box display callback. * @type WP_Post_Type $args Extra meta box arguments (the post type object for this meta box). @@ -587,7 +587,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) { * @param array $box { * Data that will be used as arguments of the taxonomy meta box. * - * @type string $id Meta box ID (used in the 'id' attribute for the meta box). + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type string $callback Meta box display callback. * @type object $args Extra meta box arguments (the taxonomy object for this meta box).