Make WordPress Core

Changeset 37545


Ignore:
Timestamp:
05/23/2016 08:56:38 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: The $context parameter in remove_meta_box() is not optional.

Fixes a copy pasta error introduced in [34952].

Props travisnorthcutt.
See #32246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r37537 r37545  
    10611061 *                                        post type, 'link', or 'comment'). Accepts a single screen ID,
    10621062 *                                        WP_Screen object, or array of screen IDs.
    1063  * @param string                 $context Optional. The context within the screen where the boxes
    1064  *                                        should display. Available contexts vary from screen to
    1065  *                                        screen. Post edit screen contexts include 'normal', 'side',
    1066  *                                        and 'advanced'. Comments screen contexts include 'normal'
    1067  *                                        and 'side'. Menus meta boxes (accordion sections) all use
    1068  *                                        the 'side' context. Global default is 'advanced'.
     1063 * @param string                 $context The context within the screen where the box is set to display.
     1064 *                                        Contexts vary from screen to screen. Post edit screen contexts
     1065 *                                        include 'normal', 'side', and 'advanced'. Comments screen contexts
     1066 *                                        include 'normal' and 'side'. Menus meta boxes (accordion sections)
     1067 *                                        all use the 'side' context.
    10691068 */
    10701069function remove_meta_box( $id, $screen, $context ) {
Note: See TracChangeset for help on using the changeset viewer.