Ticket #26683: 26683.diff
| File 26683.diff, 1.7 KB (added by , 13 years ago) |
|---|
-
src/wp-includes/post.php
1555 1555 /** 1556 1556 * Register support of certain features for a post type. 1557 1557 * 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'. 1558 * All features are directly associated with a functional area of the edit 1559 * screen, such as the editor or a meta box: 'title', 'editor', 'comments', 1560 * 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 1561 * 'thumbnail', 'custom-fields', and 'post-formats'. 1561 1562 * 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. 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. 1564 1566 * 1565 1567 * @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, can be an array of 1571 * feature strings or a single string. 1568 1572 */ 1569 1573 function add_post_type_support( $post_type, $feature ) { 1570 1574 global $_wp_post_type_features;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)