Ticket #17863: 17863.preliminary.no-styling.diff
File 17863.preliminary.no-styling.diff, 19.6 KB (added by , 13 years ago) |
---|
-
wp-includes/admin-bar.php
615 615 return; 616 616 617 617 $form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">'; 618 $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" type="text" value="" maxlength="150" />'; 618 $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" type="text" value="" maxlength="150" />'; // Note to Self: Change to type="search" and update stylings. 619 619 $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>'; 620 620 $form .= '</form>'; 621 621 -
wp-includes/general-template.php
159 159 160 160 $form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '" > 161 161 <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" /> 163 163 <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> 164 164 </div> 165 165 </form>'; -
wp-admin/includes/plugin-install.php
127 127 <option value="author"<?php selected('author', $type) ?>><?php _e('Author'); ?></option> 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 ); ?> 133 133 </form><?php -
wp-admin/includes/class-wp-list-table.php
212 212 ?> 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> 218 218 <?php … … 518 518 if ( 'bottom' == $which ) 519 519 $html_current_page = $current; 520 520 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' name='%s' value='%s' size='%d' />", 522 522 esc_attr__( 'Current page' ), 523 523 esc_attr( 'paged' ), 524 524 $current, -
wp-admin/includes/dashboard.php
463 463 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> 469 469 </form> 470 470 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> 476 476 </form> -
wp-admin/includes/theme-install.php
62 62 <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 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> 68 68 <?php -
wp-admin/includes/media.php
1777 1777 1778 1778 <p id="media-search" class="search-box"> 1779 1779 <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(); ?>" /> 1781 1781 <?php submit_button( __( 'Search Media' ), 'button', '', false ); ?> 1782 1782 </p> 1783 1783 -
wp-admin/options-general.php
104 104 <?php if ( !is_multisite() ) { ?> 105 105 <tr valign="top"> 106 106 <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> 108 108 </tr> 109 109 <tr valign="top"> 110 110 <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' ?>" /> 112 112 <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> 113 113 </tr> 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" />116 <td><input name="admin_email" type="email" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 117 117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> 118 118 </tr> 119 119 <tr valign="top"> … … 132 132 <?php } else { ?> 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 code" />135 <td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" /> 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 138 138 $new_admin_email = get_option( 'new_admin_email' ); -
wp-admin/options-media.php
60 60 <th scope="row"><?php _e('Thumbnail size') ?></th> 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" 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" 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> 68 68 </td> … … 72 72 <th scope="row"><?php _e('Medium size') ?></th> 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" 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" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" /> 78 78 </fieldset></td> 79 79 </tr> 80 80 … … 82 82 <th scope="row"><?php _e('Large size') ?></th> 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" 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" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" /> 88 88 </fieldset></td> 89 89 </tr> 90 90 … … 106 106 <th scope="row"><?php _e('Maximum embed size') ?></th> 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" 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" 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> 114 114 </tr> … … 128 128 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> 134 134 </tr> -
wp-admin/options-discussion.php
71 71 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" 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"> 77 77 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> … … 100 100 if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"'; 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" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page ); 104 104 105 105 ?></label> 106 106 <br /> … … 142 142 <tr valign="top"> 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" 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> 148 148 <p> -
wp-admin/options-reading.php
105 105 <tr valign="top"> 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" 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" 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"> 116 116 <th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th> -
wp-admin/options-writing.php
71 71 <table class="form-table"> 72 72 <tr valign="top"> 73 73 <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" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" /> 75 75 <?php _e('lines') ?></td> 76 76 </tr> 77 77 <tr valign="top"> … … 136 136 <table class="form-table"> 137 137 <tr valign="top"> 138 138 <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" /> 140 140 <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" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" /> 142 142 </td> 143 143 </tr> 144 144 <tr valign="top"> … … 148 148 <tr valign="top"> 149 149 <th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th> 150 150 <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" /> 152 152 </td> 153 153 </tr> 154 154 <tr valign="top"> -
wp-admin/themes.php
162 162 163 163 <p class="search-box"> 164 164 <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(); ?>" /> 166 166 <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?> 167 167 <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a> 168 168 </p>