Make WordPress Core

Ticket #61290: 61290.WIP.diff

File 61290.WIP.diff, 1.9 KB (added by sabernhardt, 13 months ago)

adds full array of HTML5 supports and fixes the comment form input types

  • src/wp-content/themes/twentyeleven/functions.php

     
    294294
    295295                // Indicate widget sidebars can use selective refresh in the Customizer.
    296296                add_theme_support( 'customize-selective-refresh-widgets' );
     297
     298                // Switch default core markup to output valid HTML5.
     299                add_theme_support(
     300                        'html5',
     301                        array(
     302                                'search-form',
     303                                'comment-form',
     304                                'comment-list',
     305                                'gallery',
     306                                'caption',
     307                                'script',
     308                                'style',
     309                                'navigation-widgets',
     310                        )
     311                );
    297312        }
    298313endif; // twentyeleven_setup()
    299314
  • src/wp-content/themes/twentyeleven/style.css

     
    21942194        width: 68.9%;
    21952195}
    21962196#respond input[type="text"],
     2197#respond input[type="email"],
     2198#respond input[type="url"],
    21972199#respond textarea {
    21982200        background: #fff;
    21992201        border: 4px solid #eee;
     
    22312233        z-index: 1;
    22322234}
    22332235#respond input[type="text"]:focus,
     2236#respond input[type="email"]:focus,
     2237#respond input[type="url"]:focus,
    22342238#respond textarea:focus {
    22352239        text-indent: 0;
    22362240        z-index: 1;
     
    23292333#respond label {
    23302334        line-height: 2.2em;
    23312335}
    2332 #respond input[type=text] {
     2336#respond input[type="text"],
     2337#respond input[type="email"],
     2338#respond input[type="url"] {
    23332339        display: block;
    23342340        height: 24px;
    23352341        width: 75%;
     
    26222628                top: 2.2em;
    26232629        }
    26242630        /* Use the available space in the smaller comment form */
    2625         #respond input[type="text"] {
     2631        #respond input[type="text"],
     2632        #respond input[type="email"],
     2633        #respond input[type="url"] {
    26262634                width: 95%;
    26272635        }
    26282636        #content .gallery-columns-3 .gallery-item {