Ticket #18691: current_theme_supports.diff
File current_theme_supports.diff, 551 bytes (added by , 13 years ago) |
---|
-
wp-includes/theme.php
1952 1952 else 1953 1953 return false; 1954 1954 break; 1955 1956 case 'post-formats': 1957 // specific post formats can be registered by passing an array of types to 1958 // add_theme_support() 1959 $post_type = $args[0]; 1960 if ( in_array($post_type, $_wp_theme_features[$feature][0]) ) 1961 return true; 1962 else 1963 return false; 1964 break; 1955 1965 } 1956 1966 1957 1967 return true;