Make WordPress Core

Ticket #17863: 17863.all-but-admin-bar.diff

File 17863.all-but-admin-bar.diff, 34.2 KB (added by georgestephanis, 13 years ago)

Merged in all new input types found so far, added in step="" min="" max="" as appropriate, added styling as needed and tidied up search type a bit to maintain WP aesthetics.

  • wp-includes/general-template.php

     
    159159
    160160        $form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '" >
    161161        <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
    162         <input type="text" value="' . get_search_query() . '" name="s" id="s" />
     162        <input type="search" value="' . get_search_query() . '" name="s" id="s" />
    163163        <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
    164164        </div>
    165165        </form>';
  • wp-includes/theme-compat/comments.php

     
    7676<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    7777<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    7878
    79 <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
     79<p><input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    8080<label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    8181
    82 <p><input type="text" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
     82<p><input type="url" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    8383<label for="url"><small><?php _e('Website'); ?></small></label></p>
    8484
    8585<?php endif; ?>
  • wp-includes/theme-compat/comments-popup.php

     
    7676        </p>
    7777
    7878        <p>
    79           <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
     79          <input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
    8080           <label for="email"><?php _e('E-mail'); ?></label>
    8181        </p>
    8282
    8383        <p>
    84           <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
     84          <input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
    8585           <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label>
    8686        </p>
    8787<?php endif; ?>
  • wp-includes/class-wp-editor.php

     
    764764                        <div class="link-search-wrapper">
    765765                                <label>
    766766                                        <span><?php _e( 'Search' ); ?></span>
    767                                         <input type="text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
     767                                        <input type="search" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
    768768                                        <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    769769                                </label>
    770770                        </div>
  • index.php

     
    1515
    1616/** Loads the WordPress Environment and Template */
    1717require('./wp-blog-header.php');
     18
  • wp-content/themes/twentyeleven/searchform.php

     
    99?>
    1010        <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    1111                <label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
    12                 <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
     12                <input type="search" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
    1313                <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" />
    1414        </form>
  • wp-admin/includes/plugin-install.php

     
    127127                        <option value="author"<?php selected('author', $type) ?>><?php _e('Author'); ?></option>
    128128                        <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option>
    129129                </select>
    130                 <input type="text" name="s" value="<?php echo esc_attr($term) ?>" />
     130                <input type="search" name="s" value="<?php echo esc_attr($term) ?>" />
    131131                <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
    132132                <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?>
    133133        </form><?php
  • wp-admin/includes/class-wp-list-table.php

     
    212212?>
    213213<p class="search-box">
    214214        <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
    215         <input type="text" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
     215        <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
    216216        <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
    217217</p>
    218218<?php
     
    518518                if ( 'bottom' == $which )
    519519                        $html_current_page = $current;
    520520                else
    521                         $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' />",
     521                        $html_current_page = sprintf( "<input class='current-page' title='%s' type='number' step='1' min='1' max='%d' name='%s' value='%s' size='%d' />",
    522522                                esc_attr__( 'Current page' ),
     523                                intval( $total_pages ),
    523524                                esc_attr( 'paged' ),
    524525                                $current,
    525526                                strlen( $total_pages )
  • wp-admin/includes/dashboard.php

     
    463463
    464464        <form name="searchform" action="<?php echo network_admin_url('users.php'); ?>" method="get">
    465465                <p>
    466                         <input type="text" name="s" value="" size="17" />
     466                        <input type="search" name="s" value="" size="17" />
    467467                        <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
    468468                </p>
    469469        </form>
    470470
    471471        <form name="searchform" action="<?php echo network_admin_url('sites.php'); ?>" method="get">
    472472                <p>
    473                         <input type="text" name="s" value="" size="17" />
     473                        <input type="search" name="s" value="" size="17" />
    474474                        <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
    475475                </p>
    476476        </form>
  • wp-admin/includes/theme-install.php

     
    6262        <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option>
    6363        <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option>
    6464        </select>
    65         <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
     65        <input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
    6666        <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>
    6767</form>
    6868<?php
  • wp-admin/includes/template.php

     
    320320
    321321                <div class="inside">
    322322                <label for="author-email"><?php _e('E-mail') ?></label>
    323                 <input type="text" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
     323                <input type="email" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
    324324                </div>
    325325
    326326                <div class="inside">
    327327                <label for="author-url"><?php _e('URL') ?></label>
    328                 <input type="text" id="author-url" name="newcomment_author_url" size="103" value="" tabindex="103" />
     328                <input type="url" id="author-url" name="newcomment_author_url" size="103" value="" tabindex="103" />
    329329                </div>
    330330                <div style="clear:both;"></div>
    331331        </div>
     
    593593        }
    594594        $month .= '</select>';
    595595
    596         $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    597         $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
    598         $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    599         $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     596        $day = '<input type="number" step="1" min="1" max="31" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     597        $year = '<input type="number" step="1" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
     598        $hour = '<input type="number" step="1" min="0" max="23" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     599        $minute = '<input type="number" step="1" min="0" max="59" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    600600
    601601        echo '<div class="timestamp-wrap">';
    602602        /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
  • wp-admin/includes/media.php

     
    17771777
    17781778<p id="media-search" class="search-box">
    17791779        <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label>
    1780         <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
     1780        <input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
    17811781        <?php submit_button( __( 'Search Media' ), 'button', '', false ); ?>
    17821782</p>
    17831783
  • wp-admin/includes/ms.php

     
    423423        ?>
    424424        <tr>
    425425                <th><?php _e( 'Site Upload Space Quota '); ?></th>
    426                 <td><input type="text" size="3" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /> <?php _e( 'MB (Leave blank for network default)' ); ?></td>
     426                <td><input type="number" step="0.1" min="0" size="3" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /> <?php _e( 'MB (Leave blank for network default)' ); ?></td>
    427427        </tr>
    428428        <?php
    429429}
  • wp-admin/includes/screen.php

     
    936936                <h5><?php _ex('Show on screen', 'Screen Options') ?></h5>
    937937                <div class='screen-options'>
    938938                        <?php if ( !empty($per_page_label) ): ?>
    939                                 <input type='text' class='screen-per-page' name='wp_screen_options[value]'
     939                                <input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]'
    940940                                        id='<?php echo esc_attr( $option ); ?>' maxlength='3'
    941941                                        value='<?php echo esc_attr( $per_page ); ?>' />
    942942                                <label for='<?php echo esc_attr( $option ); ?>'>
  • wp-admin/includes/nav-menu.php

     
    127127                                        <p class="field-url description description-wide">
    128128                                                <label for="edit-menu-item-url-<?php echo $item_id; ?>">
    129129                                                        <?php _e( 'URL' ); ?><br />
    130                                                         <input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
     130                                                        <input type="url" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
    131131                                                </label>
    132132                                        </p>
    133133                                <?php endif; ?>
     
    691691                        }
    692692                        ?>
    693693                        <p class="quick-search-wrap">
    694                                 <input type="text" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" />
     694                                <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" />
    695695                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    696696                                <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
    697697                        </p>
     
    923923                        }
    924924                        ?>
    925925                        <p class="quick-search-wrap">
    926                                 <input type="text" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
     926                                <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
    927927                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    928928                                <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
    929929                        </p>
  • wp-admin/options-general.php

     
    104104<?php if ( !is_multisite() ) { ?>
    105105<tr valign="top">
    106106<th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th>
    107 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
     107<td><input name="siteurl" type="url" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
    108108</tr>
    109109<tr valign="top">
    110110<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    111 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
     111<td><input name="home" type="url" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
    112112<span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
    113113</tr>
    114114<tr valign="top">
    115115<th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
    116 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
     116<td><input name="admin_email" type="email" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
    117117<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
    118118</tr>
    119119<tr valign="top">
     
    132132<?php } else { ?>
    133133<tr valign="top">
    134134<th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
    135 <td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />
     135<td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />
    136136<span class="description"><?php _e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></span>
    137137<?php
    138138$new_admin_email = get_option( 'new_admin_email' );
  • wp-admin/options-media.php

     
    6060<th scope="row"><?php _e('Thumbnail size') ?></th>
    6161<td>
    6262<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    63 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
     63<input name="thumbnail_size_w" type="number" step="1" min="1" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
    6464<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    65 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
     65<input name="thumbnail_size_h" type="number" step="1" min="1" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
    6666<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    6767<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    6868</td>
     
    7272<th scope="row"><?php _e('Medium size') ?></th>
    7373<td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
    7474<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    75 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
     75<input name="medium_size_w" type="number" step="1" min="1" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
    7676<label for="medium_size_h"><?php _e('Max Height'); ?></label>
    77 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
     77<input name="medium_size_h" type="number" step="1" min="1" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
    7878</fieldset></td>
    7979</tr>
    8080
     
    8282<th scope="row"><?php _e('Large size') ?></th>
    8383<td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
    8484<label for="large_size_w"><?php _e('Max Width'); ?></label>
    85 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
     85<input name="large_size_w" type="number" step="1" min="1" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
    8686<label for="large_size_h"><?php _e('Max Height'); ?></label>
    87 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
     87<input name="large_size_h" type="number" step="1" min="1" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
    8888</fieldset></td>
    8989</tr>
    9090
     
    106106<th scope="row"><?php _e('Maximum embed size') ?></th>
    107107<td>
    108108<label for="embed_size_w"><?php _e('Width'); ?></label>
    109 <input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
     109<input name="embed_size_w" type="number" step="1" min="1" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
    110110<label for="embed_size_h"><?php _e('Height'); ?></label>
    111 <input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
     111<input name="embed_size_h" type="number" step="1" min="1" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
    112112<?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
    113113</td>
    114114</tr>
     
    128128
    129129<tr valign="top">
    130130<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
    131 <td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
     131<td><input name="upload_url_path" type="url" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
    132132<span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
    133133</td>
    134134</tr>
  • wp-admin/edit-link-form.php

     
    9898<div id="addressdiv" class="stuffbox">
    9999<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
    100100<div class="inside">
    101         <input type="text" name="link_url" size="30" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
     101        <input type="url" name="link_url" size="30" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
    102102    <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p>
    103103</div>
    104104</div>
  • wp-admin/edit-form-comment.php

     
    9292                        _e( 'E-mail:' );
    9393                }
    9494?></td>
    95         <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>
     95        <td><input type="email" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>
    9696</tr>
    9797<tr valign="top">
    9898        <td class="first">
     
    103103                } else {
    104104                        _e( 'URL:' );
    105105                } ?></td>
    106         <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td>
     106        <td><input type="url" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td>
    107107</tr>
    108108</tbody>
    109109</table>
  • wp-admin/network/settings.php

     
    267267                        <tr valign="top">
    268268                                <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>
    269269                                <td>
    270                                         <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" />
     270                                        <input type="url" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" />
    271271                                        <br />
    272272                                        <?php _e( 'The URL for the first comment on a new site.' ) ?>
    273273                                </td>
  • wp-admin/network/site-users.php

     
    290290                </tr>
    291291                <tr>
    292292                        <th scope="row"><?php _e( 'Email' ) ?></th>
    293                         <td><input type="text" class="regular-text" name="user[email]" /></td>
     293                        <td><input type="email" class="regular-text" name="user[email]" /></td>
    294294                </tr>
    295295                <tr>
    296296                        <th scope="row"><?php _e( 'Role'); ?></th>
  • wp-admin/options-discussion.php

     
    7171
    7272<label for="close_comments_for_old_posts">
    7373<input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', get_option('close_comments_for_old_posts')); ?> />
    74 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="text" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?>
     74<?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?>
    7575<br />
    7676<label for="thread_comments">
    7777<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> />
     
    100100if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
    101101$default_comments_page .= '>' . __('first') . '</option></select>';
    102102
    103 printf( __('Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="text" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
     103printf( __('Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="1" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
    104104
    105105?></label>
    106106<br />
     
    142142<tr valign="top">
    143143<th scope="row"><?php _e('Comment Moderation'); ?></th>
    144144<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>
    145 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p>
     145<p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="number" step="1" min="1" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p>
    146146
    147147<p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
    148148<p>
  • wp-admin/user-edit.php

     
    333333<table class="form-table">
    334334<tr>
    335335        <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    336         <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
     336        <td><input type="email" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
    337337        <?php
    338338        $new_email = get_option( $current_user->ID . '_new_email' );
    339339        if ( $new_email && $new_email != $current_user->user_email ) : ?>
     
    346346
    347347<tr>
    348348        <th><label for="url"><?php _e('Website') ?></label></th>
    349         <td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
     349        <td><input type="url" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
    350350</tr>
    351351
    352352<?php
  • wp-admin/css/wp-admin.dev.css

     
    208208/* include margin and padding in the width calculation of input and textarea */
    209209input[type="text"],
    210210input[type="password"],
     211input[type="number"],
     212input[type="search"],
     213input[type="email"],
     214input[type="url"],
    211215textarea {
    212216        -moz-box-sizing: border-box;
    213217        -webkit-box-sizing: border-box;
     
    220224        vertical-align: text-bottom;
    221225}
    222226
     227input[type="search"] {
     228        -webkit-appearance: textfield;
     229        text-align: left;
     230}
     231
     232input[type="search"]::-webkit-search-decoration {
     233        display:none;
     234}
     235
    223236/* general */
    224237html,
    225238body {
  • wp-admin/options-reading.php

     
    105105<tr valign="top">
    106106<th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>
    107107<td>
    108 <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?>
     108<input name="posts_per_page" type="number" step="1" min="1" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?>
    109109</td>
    110110</tr>
    111111<tr valign="top">
    112112<th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>
    113 <td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
     113<td><input name="posts_per_rss" type="number" step="1" min="1" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
    114114</tr>
    115115<tr valign="top">
    116116<th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th>
  • wp-admin/options-writing.php

     
    7171<table class="form-table">
    7272<tr valign="top">
    7373<th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>
    74 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
     74<td><input name="default_post_edit_rows" type="number" step="1" min="1" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
    7575<?php _e('lines') ?></td>
    7676</tr>
    7777<tr valign="top">
     
    136136<table class="form-table">
    137137<tr valign="top">
    138138<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
    139 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
     139<td><input name="mailserver_url" type="url" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
    140140<label for="mailserver_port"><?php _e('Port') ?></label>
    141 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
     141<input name="mailserver_port" type="number" step="1" min="1" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
    142142</td>
    143143</tr>
    144144<tr valign="top">
     
    148148<tr valign="top">
    149149<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
    150150<td>
    151 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" />
     151<input name="mailserver_pass" type="password" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" />
    152152</td>
    153153</tr>
    154154<tr valign="top">
  • wp-admin/themes.php

     
    162162
    163163<p class="search-box">
    164164        <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Installed Themes'); ?>:</label>
    165         <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
     165        <input type="search" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    166166        <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
    167167        <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
    168168</p>