Ticket #18691: current_theme_supports-2.diff
File current_theme_supports-2.diff, 799 bytes (added by , 13 years ago) |
---|
-
wp-includes/theme.php
1947 1947 if ( true === $_wp_theme_features[$feature] ) // Registered for all types 1948 1948 return true; 1949 1949 $content_type = $args[0]; 1950 if ( in_array($content_type, $_wp_theme_features[$feature][0]) ) 1951 return true; 1952 else 1953 return false; 1950 return in_array( $content_type, $_wp_theme_features[$feature][0] ); 1954 1951 break; 1952 1953 case 'post-formats': 1954 // specific post formats can be registered by passing an array of types to 1955 // add_theme_support() 1956 $post_format = $args[0]; 1957 return in_array( $post_format, $_wp_theme_features[$feature][0] ); 1958 break; 1955 1959 } 1956 1960 1957 1961 return true;