Ticket #21527: 21527.diff
| File 21527.diff, 671 bytes (added by obenland, 10 months ago) |
|---|
-
wp-includes/post.php
1380 1380 1381 1381 function post_type_supports( $post_type, $feature ) { 1382 1382 global $_wp_post_type_features; 1383 1384 if ( !isset( $_wp_post_type_features[$post_type][$feature] ) ) 1385 return false; 1386 1387 // If no args passed then no extra checks need be performed 1388 if ( func_num_args() <= 2 ) 1389 return true; 1390 1391 // @todo Allow pluggable arg checking 1392 //$args = array_slice( func_get_args(), 2 ); 1393 1394 return true; 1383 return ( isset( $_wp_post_type_features[$post_type][$feature] ) ); 1395 1384 } 1396 1385 1397 1386 /**
