WordPress.org

Make WordPress Core

Ticket #21527: 21527.diff

File 21527.diff, 671 bytes (added by obenland, 20 months ago)
  • wp-includes/post.php

     
    13801380 
    13811381function post_type_supports( $post_type, $feature ) { 
    13821382        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] ) ); 
    13951384} 
    13961385 
    13971386/**