From 6d7abb8fd387368c103ce4658809f345ec75771c Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 23 May 2016 20:57:28 +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. Built from https://develop.svn.wordpress.org/trunk@37545 git-svn-id: http://core.svn.wordpress.org/trunk@37513 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 11 +++++------ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 4a1f6a464e..476389a121 100644 --- a/wp-admin/includes/template.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index ef18ca026c..65ac9c725a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37544'; +$wp_version = '4.6-alpha-37545'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.