diff --git wp-includes/post.php wp-includes/post.php
index 59506f8..d75f970 100644
|
|
|
function post_type_supports( $post_type, $feature ) { |
| 1552 | 1552 | } |
| 1553 | 1553 | |
| 1554 | 1554 | /** |
| | 1555 | * Get a list of post type names that support a specific feature. |
| | 1556 | * |
| | 1557 | * @since 4.5.0 |
| | 1558 | * |
| | 1559 | * @param array|string $feature Single feature or an array of features the post types should support. |
| | 1560 | * @return array A list of post type names. |
| | 1561 | */ |
| | 1562 | function get_post_types_supporting( $args ) { |
| | 1563 | global $_wp_post_type_features; |
| | 1564 | |
| | 1565 | $features = array_fill_keys( (array) $args, true ); |
| | 1566 | |
| | 1567 | return array_keys( wp_filter_object_list( $_wp_post_type_features, $features ) ); |
| | 1568 | } |
| | 1569 | |
| | 1570 | /** |
| 1555 | 1571 | * Update the post type for the post ID. |
| 1556 | 1572 | * |
| 1557 | 1573 | * The page or post cache will be cleaned for the post ID. |