Ticket #6914: wp-6914.diff
| File wp-6914.diff, 11.9 kB (added by MarcoZ, 5 months ago) |
|---|
-
wp-admin/edit-category-form.php
old new 26 26 <table class="form-table"> 27 27 <tr class="form-field form-required"> 28 28 <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th> 29 <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" /><br />29 <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" aria-required="true" /><br /> 30 30 <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td> 31 31 </tr> 32 32 <tr class="form-field"> -
wp-admin/edit-form-advanced.php
old new 222 222 <div id="category-adder" class="wp-hidden-children"> 223 223 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 224 224 <p id="category-add" class="wp-hidden-child"> 225 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />225 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 226 226 <label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 227 227 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 228 228 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> -
wp-admin/edit-link-category-form.php
old new 26 26 <table class="form-table"> 27 27 <tr class="form-field form-required"> 28 28 <th scope="row" valign="top"><label for="name"><?php _e('Category name') ?></label></th> 29 <td><input name="name" id="name" type="text" value="<?php echo $category->name; ?>" size="40" /></td>29 <td><input name="name" id="name" type="text" value="<?php echo $category->name; ?>" size="40" aria-required="true" /></td> 30 30 </tr> 31 31 <tr class="form-field"> 32 32 <th scope="row" valign="top"><label for="slug"><?php _e('Category slug') ?></label></th> -
wp-admin/edit-link-form.php
old new 105 105 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> 106 106 <p id="link-category-add" class="wp-hidden-child"> 107 107 <label class="hidden" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 108 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" />108 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" aria-required="true" /> 109 109 <input type="button" id="category-add-sumbit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" /> 110 110 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?> 111 111 <span id="category-ajax-response"></span> -
wp-admin/edit-tag-form.php
old new 26 26 <table class="form-table"> 27 27 <tr class="form-field form-required"> 28 28 <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th> 29 <td><input name="name" id="name" type="text" value="<?php echo attribute_escape($tag->name); ?>" size="40" />29 <td><input name="name" id="name" type="text" value="<?php echo attribute_escape($tag->name); ?>" size="40" aria-required="true" /> 30 30 <p><?php _e('The name is how the tag appears on your site.'); ?></p></td> 31 31 </tr> 32 32 <tr class="form-field"> -
wp-admin/includes/media.php
old new 703 703 } 704 704 705 705 $required = $field['required'] ? '<abbr title="required" class="required">*</abbr>' : ''; 706 $aria_required = $field['required'] ? ' aria-required="true" ' : ''; 706 707 $class = $id; 707 708 $class .= $field['required'] ? ' form-required' : ''; 708 709 … … 710 711 if ( !empty($field[$field['input']]) ) 711 712 $item .= $field[$field['input']]; 712 713 elseif ( $field['input'] == 'textarea' ) { 713 $item .= "<textarea type='text' id='$name' name='$name'>" . attribute_escape( $field['value'] ) . "</textarea>";714 $item .= "<textarea type='text' id='$name' name='$name'>" . attribute_escape( $field['value'] ) . $aria_required . "</textarea>"; 714 715 } else { 715 $item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "' />";716 $item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>"; 716 717 } 717 718 if ( !empty($field['helps']) ) 718 719 $item .= "<p class='help'>" . join( "</p>\n<p class='help'>", array_unique((array) $field['helps']) ) . '</p>'; … … 1085 1086 <span class="alignleft"><label for="insertonly[src]">' . __('Image URL') . '</label></span> 1086 1087 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1087 1088 </th> 1088 <td class="field"><input id="insertonly[src]" name="insertonly[src]" value="" type="text" ></td>1089 <td class="field"><input id="insertonly[src]" name="insertonly[src]" value="" type="text" aria-required="true"></td> 1089 1090 </tr> 1090 1091 <tr> 1091 1092 <th valign="top" scope="row" class="label"> 1092 1093 <span class="alignleft"><label for="insertonly[alt]">' . __('Description') . '</label></span> 1093 1094 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1094 1095 </th> 1095 <td class="field"><input id="insertonly[alt]" name="insertonly[alt]" value="" type="text" ></td>1096 <td class="field"><input id="insertonly[alt]" name="insertonly[alt]" value="" type="text" aria-required="true"></td> 1096 1097 </tr> 1097 1098 <tr><td></td><td class="help">' . __('Alternate text, e.g. "The Mona Lisa"') . '</td></tr> 1098 1099 <tr class="align"> … … 1126 1127 <span class="alignleft"><label for="insertonly[href]">' . __('Audio File URL') . '</label></span> 1127 1128 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1128 1129 </th> 1129 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" ></td>1130 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" aria-required="true"></td> 1130 1131 </tr> 1131 1132 <tr> 1132 1133 <th valign="top" scope="row" class="label"> 1133 1134 <span class="alignleft"><label for="insertonly[title]">' . __('Title') . '</label></span> 1134 1135 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1135 1136 </th> 1136 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" ></td>1137 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 1137 1138 </tr> 1138 1139 <tr><td></td><td class="help">' . __('Link text, e.g. "Still Alive by Jonathan Coulton"') . '</td></tr> 1139 1140 <tr> … … 1154 1155 <span class="alignleft"><label for="insertonly[href]">' . __('Video URL') . '</label></span> 1155 1156 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1156 1157 </th> 1157 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" ></td>1158 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" aria-required="true"></td> 1158 1159 </tr> 1159 1160 <tr> 1160 1161 <th valign="top" scope="row" class="label"> 1161 1162 <span class="alignleft"><label for="insertonly[title]">' . __('Title') . '</label></span> 1162 1163 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1163 1164 </th> 1164 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" ></td>1165 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 1165 1166 </tr> 1166 1167 <tr><td></td><td class="help">' . __('Link text, e.g. "Lucy on YouTube"') . '</td></tr> 1167 1168 <tr> … … 1182 1183 <span class="alignleft"><label for="insertonly[href]">' . __('URL') . '</label></span> 1183 1184 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1184 1185 </th> 1185 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" ></td>1186 <td class="field"><input id="insertonly[href]" name="insertonly[href]" value="" type="text" aria-required="true"></td> 1186 1187 </tr> 1187 1188 <tr> 1188 1189 <th valign="top" scope="row" class="label"> 1189 1190 <span class="alignleft"><label for="insertonly[title]">' . __('Title') . '</label></span> 1190 1191 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 1191 1192 </th> 1192 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" ></td>1193 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 1193 1194 </tr> 1194 1195 <tr><td></td><td class="help">' . __('Link text, e.g. "Ransom Demands (PDF)"') . '</td></tr> 1195 1196 <tr> -
wp-admin/users.php
old new 405 405 <table class="form-table"> 406 406 <tr class="form-field form-required"> 407 407 <th scope="row"><label for="user_login"><?php _e('Username (required)') ?></label><input name="action" type="hidden" id="action" value="adduser" /></th> 408 <td ><input name="user_login" type="text" id="user_login" value="<?php echo $new_user_login; ?>" /></td>408 <td ><input name="user_login" type="text" id="user_login" value="<?php echo $new_user_login; ?>" aria-required="true" /></td> 409 409 </tr> 410 410 <tr class="form-field"> 411 411 <th scope="row"><label for="first_name"><?php _e('First Name') ?> </label></th> -
wp-content/themes/default/comments.php
old new 78 78 79 79 <?php else : ?> 80 80 81 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />81 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 82 82 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p> 83 83 84 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />84 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 85 85 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p> 86 86 87 87 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
