Make WordPress Core

Ticket #20579: 20579.3.patch

File 20579.3.patch, 11.7 KB (added by bpetty, 12 years ago)
  • wp-content/themes/twentyeleven/colors/dark.css

    diff --git wp-content/themes/twentyeleven/colors/dark.css wp-content/themes/twentyeleven/colors/dark.css
    index b9dacce..7265d7b 100644
    abbr, acronym, dfn { 
    3434ins {
    3535        background: #00063f;
    3636}
    37 input[type=text],
    38 .post-password-required input[type=password],
     37input[type="text"],
     38input[type="password"],
     39input[type="date"],
     40input[type="datetime"],
     41input[type="datetime-local"],
     42input[type="email"],
     43input[type="month"],
     44input[type="number"],
     45input[type="search"],
     46input[type="tel"],
     47input[type="time"],
     48input[type="url"],
     49input[type="week"],
    3950textarea {
    4051        border: 1px solid #222;
    4152}
    li.bypostauthor a.comment-reply-link:active { 
    513524        border-color: #2c2c2c;
    514525}
    515526#respond input[type="text"],
     527#respond input[type="password"],
     528#respond input[type="date"],
     529#respond input[type="datetime"],
     530#respond input[type="datetime-local"],
     531#respond input[type="email"],
     532#respond input[type="month"],
     533#respond input[type="number"],
     534#respond input[type="search"],
     535#respond input[type="tel"],
     536#respond input[type="time"],
     537#respond input[type="url"],
     538#respond input[type="week"],
    516539#respond textarea {
    517540        background: #000;
    518541        border: 4px solid #111;
  • wp-content/themes/twentyeleven/editor-style.css

    diff --git wp-content/themes/twentyeleven/editor-style.css wp-content/themes/twentyeleven/editor-style.css
    index 234bb9c..ee86907 100644
    sup { 
    159159sub {
    160160        top: .5ex;
    161161}
    162 input[type=text],
     162input[type="text"],
     163input[type="password"],
     164input[type="date"],
     165input[type="datetime"],
     166input[type="datetime-local"],
     167input[type="email"],
     168input[type="month"],
     169input[type="number"],
     170input[type="search"],
     171input[type="tel"],
     172input[type="time"],
     173input[type="url"],
     174input[type="week"],
    163175textarea {
    164176        background: #fafafa;
    165177        -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    textarea { 
    168180        border: 1px solid #ddd;
    169181        color: #888;
    170182}
    171 input[type=text]:focus,
     183input[type="text"]:focus,
     184input[type="password"]:focus,
     185input[type="date"]:focus,
     186input[type="datetime"]:focus,
     187input[type="datetime-local"]:focus,
     188input[type="email"]:focus,
     189input[type="month"]:focus,
     190input[type="number"]:focus,
     191input[type="search"]:focus,
     192input[type="tel"]:focus,
     193input[type="time"]:focus,
     194input[type="url"]:focus,
     195input[type="week"]:focus,
    172196textarea:focus {
    173197        color: #333;
    174198}
    textarea { 
    176200        padding-left: 3px;
    177201        width: 98%;
    178202}
    179 input[type=text] {
     203input[type="text"],
     204input[type="password"],
     205input[type="date"],
     206input[type="datetime"],
     207input[type="datetime-local"],
     208input[type="email"],
     209input[type="month"],
     210input[type="number"],
     211input[type="search"],
     212input[type="tel"],
     213input[type="time"],
     214input[type="url"],
     215input[type="week"] {
    180216        padding: 3px;
    181217}
    182218
  • wp-content/themes/twentyeleven/functions.php

    diff --git wp-content/themes/twentyeleven/functions.php wp-content/themes/twentyeleven/functions.php
    index c3dd73d..2828586 100644
    function twentyeleven_body_classes( $classes ) { 
    611611}
    612612add_filter( 'body_class', 'twentyeleven_body_classes' );
    613613
     614/**
     615 * Changes the comment form to use HTML5 input fields for email and url.
     616 *
     617 * @since Twenty Eleven 1.5
     618 */
     619function twentyeleven_html5_comment_fields( $fields ) {
     620        if( isset( $fields['email'] ) )
     621                $fields['email'] = str_replace( 'type="text"', 'type="email"', $fields['email'] );
     622        if( isset( $fields['url'] ) )
     623                $fields['url'] = str_replace( 'type="text"', 'type="url"', $fields['url'] );
     624        return $fields;
     625}
     626add_filter( 'comment_form_default_fields', 'twentyeleven_html5_comment_fields' );
     627 No newline at end of file
  • wp-content/themes/twentyeleven/style.css

    diff --git wp-content/themes/twentyeleven/style.css wp-content/themes/twentyeleven/style.css
    index 7559198..78088fb 100644
    sub { 
    433433}
    434434
    435435/* Forms */
    436 input[type=text],
    437 input[type=password],
     436input[type="text"],
     437input[type="password"],
     438input[type="date"],
     439input[type="datetime"],
     440input[type="datetime-local"],
     441input[type="email"],
     442input[type="month"],
     443input[type="number"],
     444input[type="search"],
     445input[type="tel"],
     446input[type="time"],
     447input[type="url"],
     448input[type="week"],
    438449textarea {
    439450        background: #fafafa;
    440451        -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    textarea { 
    443454        border: 1px solid #ddd;
    444455        color: #888;
    445456}
    446 input[type=text]:focus,
     457input[type="text"]:focus,
     458input[type="password"]:focus,
     459input[type="date"]:focus,
     460input[type="datetime"]:focus,
     461input[type="datetime-local"]:focus,
     462input[type="email"]:focus,
     463input[type="month"]:focus,
     464input[type="number"]:focus,
     465input[type="search"]:focus,
     466input[type="tel"]:focus,
     467input[type="time"]:focus,
     468input[type="url"]:focus,
     469input[type="week"]:focus,
    447470textarea:focus {
    448471        color: #373737;
    449472}
    textarea { 
    451474        padding-left: 3px;
    452475        width: 98%;
    453476}
    454 input[type=text] {
     477input[type="text"],
     478input[type="password"],
     479input[type="date"],
     480input[type="datetime"],
     481input[type="datetime-local"],
     482input[type="email"],
     483input[type="month"],
     484input[type="number"],
     485input[type="search"],
     486input[type="tel"],
     487input[type="time"],
     488input[type="url"],
     489input[type="week"] {
    455490        padding: 3px;
    456491}
     492input[type="search"] {
     493        -webkit-appearance: textfield;
     494}
     495input[type="search"]::-webkit-search-decoration {
     496        display: none;
     497}
    457498input#s {
    458499        background: url(images/search.png) no-repeat 5px 6px;
    459500        -moz-border-radius: 2px;
    a.comment-reply-link > span { 
    20712112        width: 68.9%;
    20722113}
    20732114#respond input[type="text"],
     2115#respond input[type="password"],
     2116#respond input[type="date"],
     2117#respond input[type="datetime"],
     2118#respond input[type="datetime-local"],
     2119#respond input[type="email"],
     2120#respond input[type="month"],
     2121#respond input[type="number"],
     2122#respond input[type="search"],
     2123#respond input[type="tel"],
     2124#respond input[type="time"],
     2125#respond input[type="url"],
     2126#respond input[type="week"],
    20742127#respond textarea {
    20752128        background: #fff;
    20762129        border: 4px solid #eee;
    a.comment-reply-link > span { 
    21082161        z-index: 1;
    21092162}
    21102163#respond input[type="text"]:focus,
     2164#respond input[type="password"]:focus,
     2165#respond input[type="date"]:focus,
     2166#respond input[type="datetime"]:focus,
     2167#respond input[type="datetime-local"]:focus,
     2168#respond input[type="email"]:focus,
     2169#respond input[type="month"]:focus,
     2170#respond input[type="number"]:focus,
     2171#respond input[type="search"]:focus,
     2172#respond input[type="tel"]:focus,
     2173#respond input[type="time"]:focus,
     2174#respond input[type="url"]:focus,
     2175#respond input[type="week"]:focus,
    21112176#respond textarea:focus {
    21122177        text-indent: 0;
    21132178        z-index: 1;
    a.comment-reply-link > span { 
    21972262#respond label {
    21982263        line-height: 2.2em;
    21992264}
    2200 #respond input[type=text] {
     2265#respond input[type="text"],
     2266#respond input[type="password"],
     2267#respond input[type="date"],
     2268#respond input[type="datetime"],
     2269#respond input[type="datetime-local"],
     2270#respond input[type="email"],
     2271#respond input[type="month"],
     2272#respond input[type="number"],
     2273#respond input[type="search"],
     2274#respond input[type="tel"],
     2275#respond input[type="time"],
     2276#respond input[type="url"],
     2277#respond input[type="week"] {
    22012278        display: block;
    22022279        height: 24px;
    22032280        width: 75%;
    p.comment-form-comment { 
    24622539                top: 2.2em;
    24632540        }
    24642541        /* Use the available space in the smaller comment form */
    2465         #respond input[type="text"] {
     2542        #respond input[type="text"],
     2543        #respond input[type="password"],
     2544        #respond input[type="date"],
     2545        #respond input[type="datetime"],
     2546        #respond input[type="datetime-local"],
     2547        #respond input[type="email"],
     2548        #respond input[type="month"],
     2549        #respond input[type="number"],
     2550        #respond input[type="search"],
     2551        #respond input[type="tel"],
     2552        #respond input[type="time"],
     2553        #respond input[type="url"],
     2554        #respond input[type="week"] {
    24662555                width: 95%;
    24672556        }
    24682557        #respond .comment-form-author .required,
  • wp-content/themes/twentytwelve/editor-style.css

    diff --git wp-content/themes/twentytwelve/editor-style.css wp-content/themes/twentytwelve/editor-style.css
    index 6b3ce02..36eee49 100644
    sup { 
    191191sub {
    192192        bottom: -0.25em;
    193193}
    194 input[type="text"] {
     194input[type="text"],
     195input[type="password"],
     196input[type="date"],
     197input[type="datetime"],
     198input[type="datetime-local"],
     199input[type="email"],
     200input[type="month"],
     201input[type="number"],
     202input[type="search"],
     203input[type="tel"],
     204input[type="time"],
     205input[type="url"],
     206input[type="week"] {
    195207        border: 1px solid #ccc;
    196208        border-radius: 3px;
    197209        font-family: inherit;
  • wp-content/themes/twentytwelve/functions.php

    diff --git wp-content/themes/twentytwelve/functions.php wp-content/themes/twentytwelve/functions.php
    index c54fe08..6998698 100644
    function twentytwelve_customize_preview_js() { 
    437437        wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20120827', true );
    438438}
    439439add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
     440
     441
     442/**
     443 * Changes the comment form to use HTML5 input fields for email and url.
     444 *
     445 * @since Twenty Twelve 1.1
     446 */
     447function twentytwelve_html5_comment_fields( $fields ) {
     448        if( isset( $fields['email'] ) )
     449                $fields['email'] = str_replace( 'type="text"', 'type="email"', $fields['email'] );
     450        if( isset( $fields['url'] ) )
     451                $fields['url'] = str_replace( 'type="text"', 'type="url"', $fields['url'] );
     452        return $fields;
     453}
     454add_filter( 'comment_form_default_fields', 'twentytwelve_html5_comment_fields' );
     455 No newline at end of file
  • wp-content/themes/twentytwelve/style.css

    diff --git wp-content/themes/twentytwelve/style.css wp-content/themes/twentytwelve/style.css
    index deb4837..675ff06 100644
    li.bypostauthor cite span { 
    268268/* Form fields */
    269269input[type="text"],
    270270input[type="password"],
     271input[type="date"],
     272input[type="datetime"],
     273input[type="datetime-local"],
    271274input[type="email"],
     275input[type="month"],
     276input[type="number"],
     277input[type="search"],
     278input[type="tel"],
     279input[type="time"],
    272280input[type="url"],
     281input[type="week"],
    273282textarea {
    274283        padding: 6px;
    275284        padding: 0.428571429rem;
    textarea { 
    277286        border: 1px solid #ccc;
    278287        border-radius: 3px;
    279288}
     289input[type="search"] {
     290        -webkit-appearance: textfield;
     291}
     292input[type="search"]::-webkit-search-decoration {
     293        display: none;
     294}
    280295
    281296/* Responsive images */
    282297.entry-content img,
    a.comment-reply-link:hover { 
    12171232        line-height: 1.714285714;
    12181233}
    12191234#respond form input[type="text"],
     1235#respond form input[type="password"],
     1236#respond form input[type="date"],
     1237#respond form input[type="datetime"],
     1238#respond form input[type="datetime-local"],
     1239#respond form input[type="email"],
     1240#respond form input[type="month"],
     1241#respond form input[type="number"],
     1242#respond form input[type="search"],
     1243#respond form input[type="tel"],
     1244#respond form input[type="time"],
     1245#respond form input[type="url"],
     1246#respond form input[type="week"],
    12201247#respond form textarea {
    12211248        -moz-box-sizing: border-box;
    12221249        box-sizing: border-box;
    img#wpstats { 
    14611488                font-size: 22px;
    14621489                font-size: 1.571428571rem;
    14631490        }
    1464         #respond form input[type="text"] {
     1491        #respond form input[type="text"],
     1492        #respond form input[type="password"],
     1493        #respond form input[type="date"],
     1494        #respond form input[type="datetime"],
     1495        #respond form input[type="datetime-local"],
     1496        #respond form input[type="email"],
     1497        #respond form input[type="month"],
     1498        #respond form input[type="number"],
     1499        #respond form input[type="search"],
     1500        #respond form input[type="tel"],
     1501        #respond form input[type="time"],
     1502        #respond form input[type="url"],
     1503        #respond form input[type="week"] {
    14651504                width: 46.333333333%;
    14661505        }
    14671506        #respond form textarea.blog-textarea {