Ticket #14077: 14077_2.diff
File 14077_2.diff, 975 bytes (added by , 13 years ago) |
---|
-
wp-includes/post.php
1276 1276 * 1277 1277 * @since 3.0.0 1278 1278 * @param string $post_type The post type for which to remove the feature 1279 * @param string $feature The feature being removed1279 * @param string|array $feature The feature being removed, can be an array of feature strings or a single string 1280 1280 */ 1281 1281 function remove_post_type_support( $post_type, $feature ) { 1282 1282 global $_wp_post_type_features; … … 1284 1284 if ( !isset($_wp_post_type_features[$post_type]) ) 1285 1285 return; 1286 1286 1287 if ( isset($_wp_post_type_features[$post_type][$feature]) ) 1288 unset($_wp_post_type_features[$post_type][$feature]); 1287 foreach ( (array) $feature as $the_feature ) { 1288 if ( isset( $_wp_post_type_features[$post_type][$the_feature] ) ) { 1289 unset( $_wp_post_type_features[$post_type][$the_feature] ); 1290 } 1291 } 1289 1292 } 1290 1293 1291 1294 /**