From 21250e6c2fbf2be1ae17a82cb5c3713a8b549ef6 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 23 May 2016 20:56:38 +0000 Subject: [PATCH] Docs: The `$context` parameter in `remove_meta_box()` is not optional. Fixes a copy pasta error introduced in [34952]. Props travisnorthcutt. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37545 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 4a1f6a464e..476389a121 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1060,12 +1060,11 @@ function do_meta_boxes( $screen, $context, $object ) { * @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a * post type, 'link', or 'comment'). Accepts a single screen ID, * WP_Screen object, or array of screen IDs. - * @param string $context Optional. The context within the screen where the boxes - * should display. Available contexts vary from screen to - * screen. Post edit screen contexts include 'normal', 'side', - * and 'advanced'. Comments screen contexts include 'normal' - * and 'side'. Menus meta boxes (accordion sections) all use - * the 'side' context. Global default is 'advanced'. + * @param string $context The context within the screen where the box is set to display. + * Contexts vary from screen to screen. Post edit screen contexts + * include 'normal', 'side', and 'advanced'. Comments screen contexts + * include 'normal' and 'side'. Menus meta boxes (accordion sections) + * all use the 'side' context. */ function remove_meta_box( $id, $screen, $context ) { global $wp_meta_boxes;