Make WordPress Core

Changeset 38131


Ignore:
Timestamp:
07/21/2016 07:23:56 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Docs: In meta box functions, clarify that "Meta box ID" refers to the id attribute of the meta box and not a numeric ID.

Fixes #37211.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r37985 r38131  
    1414 *     Array of arguments for building the post submit meta box.
    1515 *
    16  *     @type string   $id       Meta box ID.
     16 *     @type string   $id       Meta box 'id' attribute.
    1717 *     @type string   $title    Meta box title.
    1818 *     @type callable $callback Meta box display callback.
     
    354354 *     Post formats meta box arguments.
    355355 *
    356  *     @type string   $id       Meta box ID.
     356 *     @type string   $id       Meta box 'id' attribute.
    357357 *     @type string   $title    Meta box title.
    358358 *     @type callable $callback Meta box display callback.
     
    395395 *     Tags meta box arguments.
    396396 *
    397  *     @type string   $id       Meta box ID.
     397 *     @type string   $id       Meta box 'id' attribute.
    398398 *     @type string   $title    Meta box title.
    399399 *     @type callable $callback Meta box display callback.
     
    456456 *     Categories meta box arguments.
    457457 *
    458  *     @type string   $id       Meta box ID.
     458 *     @type string   $id       Meta box 'id' attribute.
    459459 *     @type string   $title    Meta box title.
    460460 *     @type callable $callback Meta box display callback.
  • trunk/src/wp-admin/includes/nav-menu.php

    r38130 r38131  
    301301 *     Post type menu item meta box arguments.
    302302 *
    303  *     @type string       $id       Meta box ID (used in the 'id' attribute for the meta box).
     303 *     @type string       $id       Meta box 'id' attribute.
    304304 *     @type string       $title    Meta box title.
    305305 *     @type string       $callback Meta box display callback.
     
    588588 *     Data that will be used as arguments of the taxonomy meta box.
    589589 *
    590  *     @type string $id       Meta box ID (used in the 'id' attribute for the meta box).
     590 *     @type string $id       Meta box 'id' attribute.
    591591 *     @type string $title    Meta box title.
    592592 *     @type string $callback Meta box display callback.
Note: See TracChangeset for help on using the changeset viewer.