Ticket #14077: 14077.diff
File 14077.diff, 971 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
1008 1008 * 1009 1009 * @since 3.0.0 1010 1010 * @param string $post_type The post type for which to remove the feature 1011 * @param string $feature The feature being removed1011 * @param string|array $feature The feature being removed, can be an array of feature strings or a single string 1012 1012 */ 1013 1013 function remove_post_type_support( $post_type, $feature ) { 1014 1014 global $_wp_post_type_features; 1015 1015 1016 1016 if ( !isset($_wp_post_type_features[$post_type]) ) 1017 1017 return; 1018 1019 $features = (array) $feature; 1018 1020 1019 if ( isset($_wp_post_type_features[$post_type][$feature]) ) 1020 unset($_wp_post_type_features[$post_type][$feature]); 1021 foreach ($features as $feature) { 1022 if ( isset($_wp_post_type_features[$post_type][$feature]) ) 1023 unset($_wp_post_type_features[$post_type][$feature]); 1024 } 1021 1025 } 1022 1026 1023 1027 /**