Make WordPress Core

Ticket #9445: 508CompliancePatch.patch

File 508CompliancePatch.patch, 22.0 KB (added by dmo7, 17 years ago)

This is the updated patch. A couple more changes included.

  • wp-admin/edit-form-advanced.php

     
    170170
    171171<div id="post-visibility-select" class="hide-if-js">
    172172<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)); ?> />
    174174<input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attribute_escape( $visibility ); ?>" />
    175175
    176176
     
    276276<div class="tagsdiv" id="<?php echo $tax_name; ?>">
    277277        <p class="jaxtag">
    278278                <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" />
    280280
    281281        <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" />
    283283                <input type="button" class="button tagadd" value="<?php _e('Add'); ?>" tabindex="3" />
    284284        </span></p>
    285285        <p class="howto"><?php echo $helps; ?></p>
     
    595595<div id="post-body-content">
    596596<div id="titlediv">
    597597<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" />
    599599</div>
    600600<div class="inside">
    601601<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
  • wp-admin/edit-page-form.php

     
    442442<div id="post-body-content">
    443443<div id="titlediv">
    444444<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" />
    446446</div>
    447447<div class="inside">
    448448<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
  • wp-admin/includes/media.php

     
    13491349<div id="html-upload-ui">
    13501350<?php do_action('pre-html-upload-ui'); ?>
    13511351        <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>
    13531353        </p>
    13541354        <div class="clear"></div>
    13551355        <?php if ( is_lighttpd_before_150() ): ?>
  • wp-admin/includes/plugin-install.php

     
    162162                        <option value="author"<?php selected('author', $type) ?>><?php _e('Author') ?></option>
    163163                        <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option>
    164164                </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" />
    166166                <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')) ?>" class="button" />
    167167        </form><?php
    168168}
     
    210210        <p class="install-help"><?php _e('If you have a plugin in a .zip format, You may install it by uploading it here.') ?></p>
    211211        <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>">
    212212                <?php wp_nonce_field( 'plugin-upload') ?>
    213                 <input type="file" name="pluginzip" />
     213                <input type="file" name="pluginzip" alt="TODO" />
    214214                <input type="submit" class="button" value="<?php _e('Install Now') ?>" />
    215215        </form>
    216216<?php
  • wp-admin/includes/template.php

     
    160160                        case 'cb':
    161161                                $output .= "<th scope='row' class='check-column'>";
    162162                                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'/>";
    164164                                } else {
    165165                                        $output .= "&nbsp;";
    166166                                }
     
    330330                        case 'cb':
    331331                                $output .= "<th scope='row' class='check-column'>";
    332332                                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' />";
    334334                                } else {
    335335                                        $output .= "&nbsp;";
    336336                                }
     
    646646
    647647                        switch ($column_name) {
    648648                                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>';
    650650                                        break;
    651651                                case 'name':
    652652                                        $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attribute_escape(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';
     
    737737 */
    738738function wp_manage_posts_columns() {
    739739        $posts_columns = array();
    740         $posts_columns['cb'] = '<input type="checkbox" />';
     740        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    741741        /* translators: manage posts column name */
    742742        $posts_columns['title'] = _x('Post', 'column name');
    743743        $posts_columns['author'] = __('Author');
     
    761761 */
    762762function wp_manage_media_columns() {
    763763        $posts_columns = array();
    764         $posts_columns['cb'] = '<input type="checkbox" />';
     764        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    765765        $posts_columns['icon'] = '';
    766766        /* translators: column name */
    767767        $posts_columns['media'] = _x('File', 'column name');
     
    787787 */
    788788function wp_manage_pages_columns() {
    789789        $posts_columns = array();
    790         $posts_columns['cb'] = '<input type="checkbox" />';
     790        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    791791        $posts_columns['title'] = __('Title');
    792792        $posts_columns['author'] = __('Author');
    793793        $post_status = 'all';
     
    828828                        break;
    829829                case 'edit-comments':
    830830                        $_wp_column_headers[$page] = array(
    831                                 'cb' => '<input type="checkbox" />',
     831                                'cb' => '<input type="checkbox" alt="TODO" />',
    832832                                'author' => __('Author'),
    833833                                /* translators: column name */
    834834                                'comment' => _x('Comment', 'column name'),
     
    839839                        break;
    840840                case 'link-manager':
    841841                        $_wp_column_headers[$page] = array(
    842                                 'cb' => '<input type="checkbox" />',
     842                                'cb' => '<input type="checkbox" alt="TODO" />',
    843843                                'name' => __('Name'),
    844844                                'url' => __('URL'),
    845845                                'categories' => __('Categories'),
     
    853853                        break;
    854854                case 'categories':
    855855                        $_wp_column_headers[$page] = array(
    856                                 'cb' => '<input type="checkbox" />',
     856                                'cb' => '<input type="checkbox" alt="TODO" />',
    857857                                'name' => __('Name'),
    858858                                'description' => __('Description'),
    859859                                'slug' => __('Slug'),
     
    863863                        break;
    864864                case 'edit-link-categories':
    865865                        $_wp_column_headers[$page] = array(
    866                                 'cb' => '<input type="checkbox" />',
     866                                'cb' => '<input type="checkbox" alt="TODO" />',
    867867                                'name' => __('Name'),
    868868                                'description' => __('Description'),
    869869                                'slug' => __('Slug'),
     
    873873                        break;
    874874                case 'edit-tags':
    875875                        $_wp_column_headers[$page] = array(
    876                                 'cb' => '<input type="checkbox" />',
     876                                'cb' => '<input type="checkbox" alt="TODO" />',
    877877                                'name' => __('Name'),
    878878                                'description' => __('Description'),
    879879                                'slug' => __('Slug'),
     
    883883                        break;
    884884                case 'users':
    885885                        $_wp_column_headers[$page] = array(
    886                                 'cb' => '<input type="checkbox" />',
     886                                'cb' => '<input type="checkbox" alt="TODO" />',
    887887                                'username' => __('Username'),
    888888                                'name' => __('Name'),
    889889                                'email' => __('E-mail'),
     
    13841384
    13851385                case 'cb':
    13861386                ?>
    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>
    13881388                <?php
    13891389                break;
    13901390
     
    16051605
    16061606        case 'cb':
    16071607                ?>
    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>
    16091609                <?php
    16101610                break;
    16111611        case 'date':
     
    19081908                $edit .= '</div>';
    19091909
    19101910                // 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' />";
    19121912
    19131913        } else {
    19141914                $edit = '<strong>' . $user_object->user_login . '</strong>';
     
    21032103                        case 'cb':
    21042104                                if ( !$checkbox ) break;
    21052105                                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' />";
    21072107                                echo '</th>';
    21082108                                break;
    21092109                        case 'comment':
     
    24752475        }
    24762476?>
    24772477</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" />
    24792479<a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">
    24802480<span id="enternew"><?php _e('Enter new'); ?></span>
    24812481<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a>
    24822482<?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"/>
    24842484<?php } ?>
    24852485</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>
    24872487</tr>
    24882488
    24892489<tr><td colspan="2" class="submit">
     
    25422542        }
    25432543        $month .= '</select>';
    25442544
    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" />';
    25492549        /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
    25502550        printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
    25512551
  • wp-admin/includes/theme-install.php

     
    158158        <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option>
    159159        <option value="tag" <?php selected('tag', $type) ?>><?php _e('Tag'); ?></option>
    160160        </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" />
    162162        <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')); ?>" class="button" />
    163163</form>
    164164<?php
  • wp-admin/link-manager.php

     
    190190
    191191                        switch($column_name) {
    192192                                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>';
    194194                                        break;
    195195                                case 'name':
    196196
  • wp-admin/options-permalink.php

     
    173173                        </label>
    174174                </th>
    175175                <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" />
    177177                </td>
    178178        </tr>
    179179</table>
  • wp-admin/plugins.php

     
    314314<table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
    315315        <thead>
    316316        <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>
    318318                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    319319                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    320320                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    323323
    324324        <tfoot>
    325325        <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>
    327327                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    328328                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    329329                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    356356                $class = $is_active ? 'active' : 'inactive';
    357357                echo "
    358358        <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>
    360360                <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>";
    361361                $i = 0;
    362362                echo '<div class="row-actions">';
  • wp-admin/press-this.php

     
    497497                                                        <label class="hidden" for="newtag"><?php _e('Post Tags'); ?></label>
    498498                                                        <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" />
    499499                                                        <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" />
    501501                                                                <input type="button" class="button tagadd" value="Add" tabindex="3" />
    502502                                                        </span>
    503503                                                </p>
     
    516516
    517517                <div id="titlediv">
    518518                        <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" />
    520520                        </div>
    521521                </div>
    522522
  • wp-admin/upload.php

     
    299299<table class="widefat" cellspacing="0">
    300300<thead>
    301301<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>
    303303        <th scope="col"></th>
    304304        <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
    305305        <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
     
    309309
    310310<tfoot>
    311311<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>
    313313        <th scope="col"></th>
    314314        <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
    315315        <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
     
    325325                        $att_title = wp_specialchars( _draft_or_post_title($post->ID) );
    326326?>
    327327        <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>
    329329
    330330                <td class="media-icon"><?php
    331331                if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?>
  • wp-admin/user-edit.php

     
    346346?>
    347347<tr>
    348348        <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 />
    351351        <?php if ( $is_profile_page ): ?>
    352352                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    353353                <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 ! " ? $ % ^ &amp; ).'); ?></p>
  • wp-admin/user-new.php

     
    113113<?php if ( apply_filters('show_password_fields', true) ) : ?>
    114114        <tr class="form-field form-required">
    115115                <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" />
    117117                <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>
    119119        </tr>
    120120<?php endif; ?>
    121121