WordPress.org

Make WordPress Core

Ticket #26697: 26697.3.diff

File 26697.3.diff, 671 bytes (added by jond3r, 6 years ago)

Adding 'gallery' to the default array of types in add_theme_support()`

  • wp-includes/theme.php

     
    13851385                case 'html5' :
    13861386                        // You can't just pass 'html5', you need to pass an array of types.
    13871387                        if ( empty( $args[0] ) ) {
    1388                                 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
     1388                                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form', 'gallery' ) );
    13891389                        } elseif ( ! is_array( $args[0] ) ) {
    13901390                                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );
    13911391                                return false;