Changeset 7888
- Timestamp:
- 05/04/2008 09:28:12 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-category-form.php
r7887 r7888 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> -
trunk/wp-admin/edit-form-advanced.php
r7883 r7888 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" /> -
trunk/wp-admin/edit-link-category-form.php
r7887 r7888 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"> -
trunk/wp-admin/edit-link-form.php
r7883 r7888 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 ); ?> -
trunk/wp-admin/edit-tag-form.php
r7887 r7888 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> -
trunk/wp-admin/includes/media.php
r7883 r7888 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' : ''; … … 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']) ) … … 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> … … 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> … … 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> … … 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> … … 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> … … 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> … … 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> … … 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> -
trunk/wp-admin/users.php
r7883 r7888 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"> -
trunk/wp-content/themes/default/comments.php
r7360 r7888 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
Note: See TracChangeset
for help on using the changeset viewer.