Make WordPress Core

Ticket #18790: 18790.patch

File 18790.patch, 790 bytes (added by andrewsfreeman, 13 years ago)
  • wp-includes/theme.php

     
    12411241                                $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
    12421242                        break;
    12431243
     1244                case 'post-thumbnails' :
     1245                        if ( is_array( $args[0] ) && isset( $_wp_theme_features['post-thumbnails'] ) ) {
     1246                                if ( is_array( $_wp_theme_features['post-thumbnails'][0] ) )
     1247                                        $args[0] = array_merge( $_wp_theme_features['post-thumbnails'][0], $args[0] );
     1248                                elseif ( true === $_wp_theme_features['post-thumbnails'] )
     1249                                        $args = true;
     1250                        }
     1251                        break;
     1252
    12441253                case 'custom-header-uploads' :
    12451254                        return add_theme_support( 'custom-header', array( 'uploads' => true ) );
    12461255                        break;