diff --git wp-includes/post.php wp-includes/post.php
index 55a09ae..935b3d3 100644
|
|
function add_post_type_support( $post_type, $feature ) { |
1574 | 1574 | * |
1575 | 1575 | * @since 3.0.0 |
1576 | 1576 | * @param string $post_type The post type for which to remove the feature |
1577 | | * @param string $feature The feature being removed |
| 1577 | * @param string|array $features The features being removed. Can be an array of feature strings or a single string. |
1578 | 1578 | */ |
1579 | | function remove_post_type_support( $post_type, $feature ) { |
| 1579 | function remove_post_type_support( $post_type, $features ) { |
1580 | 1580 | global $_wp_post_type_features; |
1581 | 1581 | |
1582 | | if ( isset( $_wp_post_type_features[$post_type][$feature] ) ) |
1583 | | unset( $_wp_post_type_features[$post_type][$feature] ); |
| 1582 | foreach ( (array) $features as $feature ) { |
| 1583 | if ( isset( $_wp_post_type_features[ $post_type ][ $feature ] ) ) |
| 1584 | unset( $_wp_post_type_features[ $post_type ][ $feature ] ); |
| 1585 | } |
1584 | 1586 | } |
1585 | 1587 | |
1586 | 1588 | /** |