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:
parent
9531107084
commit
21250e6c2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user