Ticket #24089: 24089.patch
File 24089.patch, 1.5 KB (added by , 12 years ago) |
---|
-
wp-includes/post-formats.php
63 63 64 64 if ( !empty($format) ) { 65 65 $format = sanitize_key($format); 66 if ( 'standard' == $format || !in_array( $format, array_keys( get_post_format_slugs()) ) )66 if ( 'standard' == $format || !in_array( $format, get_post_format_slugs() ) ) 67 67 $format = ''; 68 68 else 69 69 $format = 'post-format-' . $format; -
wp-includes/theme.php
1261 1261 switch ( $feature ) { 1262 1262 case 'structured-post-formats' : 1263 1263 if ( is_array( $args[0] ) ) 1264 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs()) );1264 $args[0] = array_intersect( $args[0], get_post_format_slugs() ); 1265 1265 // structured-post-formats support automatically adds support for post-formats. 1266 1266 $_wp_theme_features['post-formats'] = $args; 1267 1267 case 'post-formats' : … … 1269 1269 if ( current_theme_supports( 'structured-post-formats' ) ) 1270 1270 $args = get_theme_support( 'structured-post-formats' ); 1271 1271 elseif ( is_array( $args[0] ) ) 1272 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs()) );1272 $args[0] = array_intersect( $args[0], get_post_format_slugs() ); 1273 1273 break; 1274 1274 1275 1275 case 'custom-header-uploads' :