WordPress.org

Make WordPress Core

Changeset 26911


Ignore:
Timestamp:
01/07/2014 02:04:16 AM (8 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for add_post_type_support().

Props philiparthurmoore.
Fixes #26683.

File:
1 edited

Legend:

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

    r26884 r26911  
    15561556 * Register support of certain features for a post type.
    15571557 *
    1558  * All features are directly associated with a functional area of the edit screen, such as the
    1559  * editor or a meta box: 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author',
    1560  * 'excerpt', 'page-attributes', 'thumbnail', and 'custom-fields'.
    1561  *
    1562  * Additionally, the 'revisions' feature dictates whether the post type will store revisions,
    1563  * and the 'comments' feature dictates whether the comments count will show on the edit screen.
     1558 * All core features are directly associated with a functional area of the edit
     1559 * screen, such as the editor or a meta box. Features include: 'title', 'editor',
     1560 * 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes',
     1561 * 'thumbnail', 'custom-fields', and 'post-formats'.
     1562 *
     1563 * Additionally, the 'revisions' feature dictates whether the post type will
     1564 * store revisions, and the 'comments' feature dictates whether the comments
     1565 * count will show on the edit screen.
    15641566 *
    15651567 * @since 3.0.0
    1566  * @param string $post_type The post type for which to add the feature
    1567  * @param string|array $feature the feature being added, can be an array of feature strings or a single string
     1568 *
     1569 * @param string       $post_type The post type for which to add the feature.
     1570 * @param string|array $feature   The feature being added, accpets an array of
     1571 *                                feature strings or a single string.
    15681572 */
    15691573function add_post_type_support( $post_type, $feature ) {
Note: See TracChangeset for help on using the changeset viewer.