Ticket #9445: 508CompliancePatch.patch
| File 508CompliancePatch.patch, 22.0 KB (added by , 17 years ago) |
|---|
-
wp-admin/edit-form-advanced.php
170 170 171 171 <div id="post-visibility-select" class="hide-if-js"> 172 172 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attribute_escape($post->post_password); ?>" /> 173 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> />173 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" alt="TODO" <?php checked(is_sticky($post->ID)); ?> /> 174 174 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attribute_escape( $visibility ); ?>" /> 175 175 176 176 … … 276 276 <div class="tagsdiv" id="<?php echo $tax_name; ?>"> 277 277 <p class="jaxtag"> 278 278 <label class="hidden" for="newtag"><?php _e( $box['title'] ); ?></label> 279 <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo get_terms_to_edit( $post->ID, $tax_name ); ?>" />279 <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo get_terms_to_edit( $post->ID, $tax_name ); ?>" alt="TODO" /> 280 280 281 281 <span class="ajaxtag"> 282 <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" />282 <input type="text" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" alt="TODO" /> 283 283 <input type="button" class="button tagadd" value="<?php _e('Add'); ?>" tabindex="3" /> 284 284 </span></p> 285 285 <p class="howto"><?php echo $helps; ?></p> … … 595 595 <div id="post-body-content"> 596 596 <div id="titlediv"> 597 597 <div id="titlewrap"> 598 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />598 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" alt="TODO" /> 599 599 </div> 600 600 <div class="inside"> 601 601 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?> -
wp-admin/edit-page-form.php
442 442 <div id="post-body-content"> 443 443 <div id="titlediv"> 444 444 <div id="titlewrap"> 445 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />445 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" alt="TODO" /> 446 446 </div> 447 447 <div class="inside"> 448 448 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?> -
wp-admin/includes/media.php
1349 1349 <div id="html-upload-ui"> 1350 1350 <?php do_action('pre-html-upload-ui'); ?> 1351 1351 <p id="async-upload-wrap"> 1352 <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>1352 <input type="file" name="async-upload" id="async-upload" alt="TODO" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a> 1353 1353 </p> 1354 1354 <div class="clear"></div> 1355 1355 <?php if ( is_lighttpd_before_150() ): ?> -
wp-admin/includes/plugin-install.php
162 162 <option value="author"<?php selected('author', $type) ?>><?php _e('Author') ?></option> 163 163 <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option> 164 164 </select> 165 <input type="text" name="s" value="<?php echo attribute_escape($term) ?>" />165 <input type="text" name="s" value="<?php echo attribute_escape($term) ?>" alt="TODO" /> 166 166 <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')) ?>" class="button" /> 167 167 </form><?php 168 168 } … … 210 210 <p class="install-help"><?php _e('If you have a plugin in a .zip format, You may install it by uploading it here.') ?></p> 211 211 <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>"> 212 212 <?php wp_nonce_field( 'plugin-upload') ?> 213 <input type="file" name="pluginzip" />213 <input type="file" name="pluginzip" alt="TODO" /> 214 214 <input type="submit" class="button" value="<?php _e('Install Now') ?>" /> 215 215 </form> 216 216 <?php -
wp-admin/includes/template.php
160 160 case 'cb': 161 161 $output .= "<th scope='row' class='check-column'>"; 162 162 if ( $default_cat_id != $category->term_id ) { 163 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";163 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' alt='TODO'/>"; 164 164 } else { 165 165 $output .= " "; 166 166 } … … 330 330 case 'cb': 331 331 $output .= "<th scope='row' class='check-column'>"; 332 332 if ( absint( get_option( 'default_link_category' ) ) != $category->term_id ) { 333 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";333 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' alt='TODO' />"; 334 334 } else { 335 335 $output .= " "; 336 336 } … … 646 646 647 647 switch ($column_name) { 648 648 case 'cb': 649 $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';649 $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" alt="TODO" /></th>'; 650 650 break; 651 651 case 'name': 652 652 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attribute_escape(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />'; … … 737 737 */ 738 738 function wp_manage_posts_columns() { 739 739 $posts_columns = array(); 740 $posts_columns['cb'] = '<input type="checkbox" />';740 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 741 741 /* translators: manage posts column name */ 742 742 $posts_columns['title'] = _x('Post', 'column name'); 743 743 $posts_columns['author'] = __('Author'); … … 761 761 */ 762 762 function wp_manage_media_columns() { 763 763 $posts_columns = array(); 764 $posts_columns['cb'] = '<input type="checkbox" />';764 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 765 765 $posts_columns['icon'] = ''; 766 766 /* translators: column name */ 767 767 $posts_columns['media'] = _x('File', 'column name'); … … 787 787 */ 788 788 function wp_manage_pages_columns() { 789 789 $posts_columns = array(); 790 $posts_columns['cb'] = '<input type="checkbox" />';790 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 791 791 $posts_columns['title'] = __('Title'); 792 792 $posts_columns['author'] = __('Author'); 793 793 $post_status = 'all'; … … 828 828 break; 829 829 case 'edit-comments': 830 830 $_wp_column_headers[$page] = array( 831 'cb' => '<input type="checkbox" />',831 'cb' => '<input type="checkbox" alt="TODO" />', 832 832 'author' => __('Author'), 833 833 /* translators: column name */ 834 834 'comment' => _x('Comment', 'column name'), … … 839 839 break; 840 840 case 'link-manager': 841 841 $_wp_column_headers[$page] = array( 842 'cb' => '<input type="checkbox" />',842 'cb' => '<input type="checkbox" alt="TODO" />', 843 843 'name' => __('Name'), 844 844 'url' => __('URL'), 845 845 'categories' => __('Categories'), … … 853 853 break; 854 854 case 'categories': 855 855 $_wp_column_headers[$page] = array( 856 'cb' => '<input type="checkbox" />',856 'cb' => '<input type="checkbox" alt="TODO" />', 857 857 'name' => __('Name'), 858 858 'description' => __('Description'), 859 859 'slug' => __('Slug'), … … 863 863 break; 864 864 case 'edit-link-categories': 865 865 $_wp_column_headers[$page] = array( 866 'cb' => '<input type="checkbox" />',866 'cb' => '<input type="checkbox" alt="TODO" />', 867 867 'name' => __('Name'), 868 868 'description' => __('Description'), 869 869 'slug' => __('Slug'), … … 873 873 break; 874 874 case 'edit-tags': 875 875 $_wp_column_headers[$page] = array( 876 'cb' => '<input type="checkbox" />',876 'cb' => '<input type="checkbox" alt="TODO" />', 877 877 'name' => __('Name'), 878 878 'description' => __('Description'), 879 879 'slug' => __('Slug'), … … 883 883 break; 884 884 case 'users': 885 885 $_wp_column_headers[$page] = array( 886 'cb' => '<input type="checkbox" />',886 'cb' => '<input type="checkbox" alt="TODO" />', 887 887 'username' => __('Username'), 888 888 'name' => __('Name'), 889 889 'email' => __('E-mail'), … … 1384 1384 1385 1385 case 'cb': 1386 1386 ?> 1387 <th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } ?></th>1387 <th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" alt="TODO" /><?php } ?></th> 1388 1388 <?php 1389 1389 break; 1390 1390 … … 1605 1605 1606 1606 case 'cb': 1607 1607 ?> 1608 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th>1608 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" alt="TODO" /></th> 1609 1609 <?php 1610 1610 break; 1611 1611 case 'date': … … 1908 1908 $edit .= '</div>'; 1909 1909 1910 1910 // Set up the checkbox (because the user is editable, otherwise its empty) 1911 $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />";1911 $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' alt='TODO' />"; 1912 1912 1913 1913 } else { 1914 1914 $edit = '<strong>' . $user_object->user_login . '</strong>'; … … 2103 2103 case 'cb': 2104 2104 if ( !$checkbox ) break; 2105 2105 echo '<th scope="row" class="check-column">'; 2106 if ( $user_can ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' />";2106 if ( $user_can ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' alt='TODO' />"; 2107 2107 echo '</th>'; 2108 2108 break; 2109 2109 case 'comment': … … 2475 2475 } 2476 2476 ?> 2477 2477 </select> 2478 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />2478 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" alt="TODO" /> 2479 2479 <a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;"> 2480 2480 <span id="enternew"><?php _e('Enter new'); ?></span> 2481 2481 <span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a> 2482 2482 <?php } else { ?> 2483 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />2483 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" alt="TODO"/> 2484 2484 <?php } ?> 2485 2485 </td> 2486 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8" ></textarea></td>2486 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8" alt="TODO"></textarea></td> 2487 2487 </tr> 2488 2488 2489 2489 <tr><td colspan="2" class="submit"> … … 2542 2542 } 2543 2543 $month .= '</select>'; 2544 2544 2545 $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';2546 $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';2547 $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';2548 $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';2545 $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />'; 2546 $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />'; 2547 $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />'; 2548 $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />'; 2549 2549 /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */ 2550 2550 printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); 2551 2551 -
wp-admin/includes/theme-install.php
158 158 <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 159 159 <option value="tag" <?php selected('tag', $type) ?>><?php _e('Tag'); ?></option> 160 160 </select> 161 <input type="text" name="s" size="30" value="<?php echo attribute_escape($term) ?>" />161 <input type="text" name="s" size="30" value="<?php echo attribute_escape($term) ?>" alt="TODO" /> 162 162 <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')); ?>" class="button" /> 163 163 </form> 164 164 <?php -
wp-admin/link-manager.php
190 190 191 191 switch($column_name) { 192 192 case 'cb': 193 echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></th>';193 echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" alt="TODO" /></th>'; 194 194 break; 195 195 case 'name': 196 196 -
wp-admin/options-permalink.php
173 173 </label> 174 174 </th> 175 175 <td> 176 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo attribute_escape($permalink_structure); ?>" class="regular-text code" />176 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo attribute_escape($permalink_structure); ?>" class="regular-text code" alt="TODO" /> 177 177 </td> 178 178 </tr> 179 179 </table> -
wp-admin/plugins.php
314 314 <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table"> 315 315 <thead> 316 316 <tr> 317 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>317 <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th> 318 318 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 319 319 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 320 320 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> … … 323 323 324 324 <tfoot> 325 325 <tr> 326 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>326 <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th> 327 327 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 328 328 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 329 329 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> … … 356 356 $class = $is_active ? 'active' : 'inactive'; 357 357 echo " 358 358 <tr class='$class'> 359 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attribute_escape($plugin_file) . "' /></th>359 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attribute_escape($plugin_file) . "' alt='TODO' /></th> 360 360 <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>"; 361 361 $i = 0; 362 362 echo '<div class="row-actions">'; -
wp-admin/press-this.php
497 497 <label class="hidden" for="newtag"><?php _e('Post Tags'); ?></label> 498 498 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 499 499 <span class="ajaxtag" style="display:none;"> 500 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" />500 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" atl="TODO" /> 501 501 <input type="button" class="button tagadd" value="Add" tabindex="3" /> 502 502 </span> 503 503 </p> … … 516 516 517 517 <div id="titlediv"> 518 518 <div class="titlewrap"> 519 <input name="title" id="title" class="text" value="<?php echo attribute_escape($title);?>" />519 <input name="title" id="title" class="text" value="<?php echo attribute_escape($title);?>" alt="TODO" /> 520 520 </div> 521 521 </div> 522 522 -
wp-admin/upload.php
299 299 <table class="widefat" cellspacing="0"> 300 300 <thead> 301 301 <tr> 302 <th scope="col" class="check-column"><input type="checkbox" /></th>302 <th scope="col" class="check-column"><input type="checkbox" alt="TODO" /></th> 303 303 <th scope="col"></th> 304 304 <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th> 305 305 <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th> … … 309 309 310 310 <tfoot> 311 311 <tr> 312 <th scope="col" class="check-column"><input type="checkbox" /></th>312 <th scope="col" class="check-column"><input type="checkbox" alt="TODO" /></th> 313 313 <th scope="col"></th> 314 314 <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th> 315 315 <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th> … … 325 325 $att_title = wp_specialchars( _draft_or_post_title($post->ID) ); 326 326 ?> 327 327 <tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top"> 328 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo $post->ID; ?>" /></th>328 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo $post->ID; ?>" alt="TODO" /></th> 329 329 330 330 <td class="media-icon"><?php 331 331 if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?> -
wp-admin/user-edit.php
346 346 ?> 347 347 <tr> 348 348 <th><label for="pass1"><?php _e('New Password'); ?></label></th> 349 <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />350 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />349 <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" alt="TODO" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br /> 350 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" alt="TODO" /> <?php _e("Type your new password again."); ?><br /> 351 351 <?php if ( $is_profile_page ): ?> 352 352 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 353 353 <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p> -
wp-admin/user-new.php
113 113 <?php if ( apply_filters('show_password_fields', true) ) : ?> 114 114 <tr class="form-field form-required"> 115 115 <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th> 116 <td><input name="pass1" type="password" id="pass1" autocomplete="off" />116 <td><input name="pass1" type="password" id="pass1" autocomplete="off" alt="TODO" /> 117 117 <br /> 118 <input name="pass2" type="password" id="pass2" autocomplete="off" /></td>118 <input name="pass2" type="password" id="pass2" autocomplete="off" alt="TODO" /></td> 119 119 </tr> 120 120 <?php endif; ?> 121 121