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
This commit is contained in:
Drew Jaynes 2016-05-23 20:56:38 +00:00
parent 9531107084
commit 21250e6c2f

View File

@ -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 * @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, * post type, 'link', or 'comment'). Accepts a single screen ID,
* WP_Screen object, or array of screen IDs. * WP_Screen object, or array of screen IDs.
* @param string $context Optional. The context within the screen where the boxes * @param string $context The context within the screen where the box is set to display.
* should display. Available contexts vary from screen to * Contexts vary from screen to screen. Post edit screen contexts
* screen. Post edit screen contexts include 'normal', 'side', * include 'normal', 'side', and 'advanced'. Comments screen contexts
* and 'advanced'. Comments screen contexts include 'normal' * include 'normal' and 'side'. Menus meta boxes (accordion sections)
* and 'side'. Menus meta boxes (accordion sections) all use * all use the 'side' context.
* the 'side' context. Global default is 'advanced'.
*/ */
function remove_meta_box( $id, $screen, $context ) { function remove_meta_box( $id, $screen, $context ) {
global $wp_meta_boxes; global $wp_meta_boxes;