Make WordPress Core

Ticket #23850: 23850.4.diff

File 23850.4.diff, 876 bytes (added by nacin, 12 years ago)
  • wp-includes/theme.php

     
    12641264                                $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
    12651265                        break;
    12661266
     1267                case 'html5' :
     1268                        // 'html5' must take a second argument of what should be html5
     1269                        if ( 1 === func_num_args() ) {
     1270                                trigger_error( "add_theme_support( 'html5', \$what ) requires a second argument.", E_USER_WARNING );
     1271                                return false;
     1272                        }
     1273
     1274                        // Calling 'html5' again merges, rather than replaces.
     1275                        if ( isset( $_wp_theme_features['html5'][0] ) )
     1276                                $args[0] = array_merge( $_wp_theme_features['html5']['0'], $args[0] );
     1277
     1278                        break;
    12671279                case 'custom-header-uploads' :
    12681280                        return add_theme_support( 'custom-header', array( 'uploads' => true ) );
    12691281                        break;