Changeset 23722
- Timestamp:
- 03/15/2013 06:28:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r23635 r23722 1530 1530 global $_wp_post_type_features; 1531 1531 1532 if ( !isset($_wp_post_type_features[$post_type]) ) 1533 return; 1534 1535 if ( isset($_wp_post_type_features[$post_type][$feature]) ) 1536 unset($_wp_post_type_features[$post_type][$feature]); 1532 if ( isset( $_wp_post_type_features[$post_type][$feature] ) ) 1533 unset( $_wp_post_type_features[$post_type][$feature] ); 1537 1534 } 1538 1535 … … 1566 1563 global $_wp_post_type_features; 1567 1564 1568 if ( !isset( $_wp_post_type_features[$post_type][$feature] ) ) 1569 return false; 1570 1571 // If no args passed then no extra checks need be performed 1572 if ( func_num_args() <= 2 ) 1573 return true; 1574 1575 // @todo Allow pluggable arg checking 1576 //$args = array_slice( func_get_args(), 2 ); 1577 1578 return true; 1565 return ( isset( $_wp_post_type_features[$post_type][$feature] ) ); 1579 1566 } 1580 1567
Note: See TracChangeset
for help on using the changeset viewer.