Changeset 20168
- Timestamp:
- 03/10/2012 01:23:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin.dev.css
r20166 r20168 211 211 input[type="text"], 212 212 input[type="password"], 213 input[type="number"], 214 input[type="search"], 215 input[type="email"], 216 input[type="url"], 213 217 textarea { 214 218 -moz-box-sizing: border-box; … … 221 225 input[type="radio"] { 222 226 vertical-align: text-bottom; 227 } 228 229 input[type="search"] { 230 -webkit-appearance: textfield; 231 text-align: left; 232 } 233 234 input[type="search"]::-webkit-search-decoration { 235 display: none; 223 236 } 224 237 … … 790 803 791 804 input.small-text { 792 width: 50px;805 width: 60px; 793 806 } 794 807 -
trunk/wp-admin/edit-form-comment.php
r20077 r20168 93 93 } 94 94 ?></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> 96 96 </tr> 97 97 <tr valign="top"> -
trunk/wp-admin/includes/class-wp-list-table.php
r20104 r20168 213 213 <p class="search-box"> 214 214 <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(); ?>" /> 216 216 <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?> 217 217 </p> … … 520 520 $html_current_page = $current; 521 521 else 522 $html_current_page = sprintf( "<input class='current-page' title='%s' type=' text' name='%s' value='%s' size='%d' />",522 $html_current_page = sprintf( "<input class='current-page' title='%s' type='number' step='1' min='1' name='paged' value='%s' size='%d' />", 523 523 esc_attr__( 'Current page' ), 524 esc_attr( 'paged' ),525 524 $current, 526 525 strlen( $total_pages ) -
trunk/wp-admin/includes/dashboard.php
r20038 r20168 464 464 <form name="searchform" action="<?php echo network_admin_url('users.php'); ?>" method="get"> 465 465 <p> 466 <input type=" text" name="s" value="" size="17" />466 <input type="search" name="s" value="" size="17" /> 467 467 <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?> 468 468 </p> … … 471 471 <form name="searchform" action="<?php echo network_admin_url('sites.php'); ?>" method="get"> 472 472 <p> 473 <input type=" text" name="s" value="" size="17" />473 <input type="search" name="s" value="" size="17" /> 474 474 <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?> 475 475 </p> -
trunk/wp-admin/includes/media.php
r20114 r20168 1814 1814 <p id="media-search" class="search-box"> 1815 1815 <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label> 1816 <input type=" text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />1816 <input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 1817 1817 <?php submit_button( __( 'Search Media' ), 'button', '', false ); ?> 1818 1818 </p> -
trunk/wp-admin/includes/ms.php
r20029 r20168 375 375 <tr> 376 376 <th><?php _e( 'Site Upload Space Quota '); ?></th> 377 <td><input type=" text" size="3" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /> <?php _e( 'MB (Leave blank for network default)' ); ?></td>377 <td><input type="number" step="0.1" min="0" size="4" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /> <?php _e( 'MB (Leave blank for network default)' ); ?></td> 378 378 </tr> 379 379 <?php -
trunk/wp-admin/includes/nav-menu.php
r19928 r20168 692 692 ?> 693 693 <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; ?>" /> 695 695 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 696 696 <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?> … … 923 923 ?> 924 924 <p class="quick-search-wrap"> 925 <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; ?>" />925 <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; ?>" /> 926 926 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 927 927 <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?> -
trunk/wp-admin/includes/plugin-install.php
r19710 r20168 128 128 <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option> 129 129 </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) ?>" /> 131 131 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 132 132 <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?> -
trunk/wp-admin/includes/screen.php
r19987 r20168 984 984 <div class='screen-options'> 985 985 <?php if ( !empty($per_page_label) ): ?> 986 <input type=' text' class='screen-per-page' name='wp_screen_options[value]'986 <input type='number' step='1' min='1' class='screen-per-page' name='wp_screen_options[value]' 987 987 id='<?php echo esc_attr( $option ); ?>' maxlength='3' 988 988 value='<?php echo esc_attr( $per_page ); ?>' /> -
trunk/wp-admin/includes/template.php
r20164 r20168 324 324 <div class="inside"> 325 325 <label for="author-email"><?php _e('E-mail') ?></label> 326 <input type=" text" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />326 <input type="email" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" /> 327 327 </div> 328 328 … … 599 599 $month .= '</select>'; 600 600 601 $day = '<input type=" text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';602 $year = '<input type=" text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';603 $hour = '<input type=" text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';604 $minute = '<input type=" text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';601 $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" />'; 602 $year = '<input type="number" step="1" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />'; 603 $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" />'; 604 $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" />'; 605 605 606 606 echo '<div class="timestamp-wrap">'; -
trunk/wp-admin/includes/theme-install.php
r20141 r20168 63 63 <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> 64 64 </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) ?>" /> 66 66 <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?> 67 67 </form> -
trunk/wp-admin/network/site-users.php
r19897 r20168 301 301 <tr> 302 302 <th scope="row"><?php _e( 'Email' ) ?></th> 303 <td><input type=" text" class="regular-text" name="user[email]" /></td>303 <td><input type="email" class="regular-text" name="user[email]" /></td> 304 304 </tr> 305 305 <tr> -
trunk/wp-admin/options-discussion.php
r19593 r20168 72 72 <label for="close_comments_for_old_posts"> 73 73 <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" />'); ?> 75 75 <br /> 76 76 <label for="thread_comments"> … … 101 101 $default_comments_page .= '>' . __('first') . '</option></select>'; 102 102 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 );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="number" step="1" min="1" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page ); 104 104 105 105 ?></label> … … 143 143 <th scope="row"><?php _e('Comment Moderation'); ?></th> 144 144 <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> 146 146 147 147 <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 “press” will match “WordPress”.'); ?></label></p> -
trunk/wp-admin/options-general.php
r19817 r20168 114 114 <tr valign="top"> 115 115 <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 ltr" />116 <td><input name="admin_email" type="email" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" /> 117 117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> 118 118 </tr> … … 133 133 <tr valign="top"> 134 134 <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 ltr" />135 <td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" /> 136 136 <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> 137 137 <?php -
trunk/wp-admin/options-media.php
r19507 r20168 61 61 <td> 62 62 <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" /> 64 64 <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 /> 66 66 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/> 67 67 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label> … … 73 73 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend> 74 74 <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" /> 76 76 <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" /> 78 78 </fieldset></td> 79 79 </tr> … … 83 83 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend> 84 84 <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" /> 86 86 <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" /> 88 88 </fieldset></td> 89 89 </tr> … … 107 107 <td> 108 108 <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" /> 110 110 <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" /> 112 112 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?> 113 113 </td> … … 129 129 <tr valign="top"> 130 130 <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" /> 132 132 <span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span> 133 133 </td> -
trunk/wp-admin/options-reading.php
r19596 r20168 106 106 <th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th> 107 107 <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' ); ?> 109 109 </td> 110 110 </tr> 111 111 <tr valign="top"> 112 112 <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> 114 114 </tr> 115 115 <tr valign="top"> -
trunk/wp-admin/themes.php
r20151 r20168 159 159 <p class="search-box"> 160 160 <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Installed Themes'); ?>:</label> 161 <input type=" text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />161 <input type="search" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 162 162 <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?> 163 163 <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a> -
trunk/wp-admin/user-edit.php
r19712 r20168 334 334 <tr> 335 335 <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" /> 337 337 <?php 338 338 $new_email = get_option( $current_user->ID . '_new_email' ); -
trunk/wp-includes/class-wp-editor.php
r20166 r20168 785 785 <label> 786 786 <span><?php _e( 'Search' ); ?></span> 787 <input type=" text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />787 <input type="search" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" /> 788 788 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 789 789 </label>
Note: See TracChangeset
for help on using the changeset viewer.