Ticket #17584: 17584.diff
| File 17584.diff, 734 bytes (added by mitchoyoshitaka, 2 years ago) |
|---|
-
wp-includes/post.php
1277 1277 function post_type_supports( $post_type, $feature ) { 1278 1278 global $_wp_post_type_features; 1279 1279 1280 $support = true; 1280 1281 if ( !isset( $_wp_post_type_features[$post_type][$feature] ) ) 1281 returnfalse;1282 $support = false; 1282 1283 1283 // If no args passed then no extra checks need be performed 1284 if ( func_num_args() <= 2 ) 1285 return true; 1286 1287 // @todo Allow pluggable arg checking 1288 //$args = array_slice( func_get_args(), 2 ); 1289 1290 return true; 1284 return apply_filters( 'post_type_supports', $support, array_slice( func_get_args(), 2 ) ); 1291 1285 } 1292 1286 1293 1287 /**