Make WordPress Core

Ticket #9445: 9445.patch

File 9445.patch, 22.1 KB (added by hakre, 17 years ago)

Updated against latest Trunk.

  • 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 attr($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 attr( $visibility ); ?>" />
    175175
    176176
     
    277277        <div class="jaxtag">
    278278        <div class="nojs-tags hide-if-js">
    279279        <p><?php _e('Add or remove tags'); ?></p>
    280         <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
     280        <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" alt="TODO" ><?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
    281281
    282282        <span class="ajaxtag hide-if-no-js">
    283283                <label class="hidden" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    284                 <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
     284                <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" alt="TODO" />
    285285                <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    286286        </span></div>
    287287        <p class="howto"><?php echo $helps; ?></p>
     
    598598<div id="titlediv">
    599599<div id="titlewrap">
    600600        <label class="hidden" for="title"><?php _e('Title') ?></label>
    601         <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
     601        <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off"  alt="TODO" />
    602602</div>
    603603<div class="inside">
    604604<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
  • wp-admin/edit-page-form.php

     
    442442<div id="titlediv">
    443443<div id="titlewrap">
    444444        <label class="hidden" for="title"><?php _e('Title') ?></label>
    445         <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
     445        <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attr( 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/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="'. attr($link->link_id) .'" /></th>';
     193                                        echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'. attr($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 attr($permalink_structure); ?>" class="regular-text code" />
     176                        <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo attr($permalink_structure); ?>" class="regular-text code" alt="TODO" />
    177177                </td>
    178178        </tr>
    179179</table>
  • wp-admin/plugins.php

     
    327327<table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
    328328        <thead>
    329329        <tr>
    330                 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
     330                <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th>
    331331                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    332332                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    333333                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    336336
    337337        <tfoot>
    338338        <tr>
    339                 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
     339                <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th>
    340340                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    341341                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    342342                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    369369                $class = $is_active ? 'active' : 'inactive';
    370370                echo "
    371371        <tr class='$class'>
    372                 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attr($plugin_file) . "' /></th>
     372                <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attr($plugin_file) . "' alt='TODO' /></th>
    373373                <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>";
    374374                $i = 0;
    375375                echo '<div class="row-actions">';
  • wp-admin/press-this.php

     
    499499                                                        <label class="hidden" for="newtag"><?php _e('Post Tags'); ?></label>
    500500                                                        <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" />
    501501                                                        <span class="ajaxtag" style="display:none;">
    502                                                                 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
     502                                                                <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" alt="TODO" />
    503503                                                                <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    504504                                                        </span>
    505505                                                </p>
     
    518518
    519519                <div id="titlediv">
    520520                        <div class="titlewrap">
    521                                 <input name="title" id="title" class="text" value="<?php echo attr($title);?>"/>
     521                                <input name="title" id="title" class="text" value="<?php echo attr($title);?>" alt="TODO" />
    522522                        </div>
    523523                </div>
    524524
  • 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 attr($post->ID); ?>" /></th>
     328                <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo attr($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

     
    355355?>
    356356<tr id="password">
    357357        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    358         <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 />
    359                 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
     358        <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 />
     359                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" alt="TODO" /> <?php _e("Type your new password again."); ?><br />
    360360        <?php if ( $is_profile_page ): ?>
    361361                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    362362                <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
  • wp-admin/includes/media.php

     
    13511351<?php do_action('pre-html-upload-ui'); ?>
    13521352        <p id="async-upload-wrap">
    13531353        <label class="hidden" for="async-upload"><?php _e('Upload'); ?></label>
    1354         <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php _ea('Upload'); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
     1354        <input type="file" name="async-upload" id="async-upload" alt="TODO" /> <input type="submit" class="button" name="html-upload" value="<?php _ea('Upload'); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
    13551355        </p>
    13561356        <div class="clear"></div>
    13571357        <?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 attr($term) ?>" />
     165                <input type="text" name="s" value="<?php echo attr($term) ?>" alt="TODO" />
    166166                <label class="hidden" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
    167167                <input type="submit" id="plugin-search-input" name="search" value="<?php _ea('Search Plugins') ?>" class="button" />
    168168        </form><?php
     
    212212        <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>">
    213213                <?php wp_nonce_field( 'plugin-upload') ?>
    214214                <label class="hidden" for="pluginzip"><?php _e('Plugin zip file'); ?></label>
    215                 <input type="file" id="pluginzip" name="pluginzip" />
     215                <input type="file" id="pluginzip" name="pluginzip" alt="TODO" />
    216216                <input type="submit" class="button" value="<?php _ea('Install Now') ?>" />
    217217        </form>
    218218<?php
  • wp-admin/includes/template.php

     
    167167                        case 'cb':
    168168                                $output .= "<th scope='row' class='check-column'>";
    169169                                if ( $default_cat_id != $category->term_id ) {
    170                                         $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
     170                                        $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' alt='TODO'/>";
    171171                                } else {
    172172                                        $output .= "&nbsp;";
    173173                                }
     
    337337                        case 'cb':
    338338                                $output .= "<th scope='row' class='check-column'>";
    339339                                if ( absint( get_option( 'default_link_category' ) ) != $category->term_id ) {
    340                                         $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
     340                                        $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' alt='TODO' />";
    341341                                } else {
    342342                                        $output .= "&nbsp;";
    343343                                }
     
    655655
    656656                        switch ($column_name) {
    657657                                case 'cb':
    658                                         $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
     658                                        $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" alt="TODO" /></th>';
    659659                                        break;
    660660                                case 'name':
    661661                                        $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';
     
    746746 */
    747747function wp_manage_posts_columns() {
    748748        $posts_columns = array();
    749         $posts_columns['cb'] = '<input type="checkbox" />';
     749        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    750750        /* translators: manage posts column name */
    751751        $posts_columns['title'] = _x('Post', 'column name');
    752752        $posts_columns['author'] = __('Author');
     
    770770 */
    771771function wp_manage_media_columns() {
    772772        $posts_columns = array();
    773         $posts_columns['cb'] = '<input type="checkbox" />';
     773        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    774774        $posts_columns['icon'] = '';
    775775        /* translators: column name */
    776776        $posts_columns['media'] = _x('File', 'column name');
     
    796796 */
    797797function wp_manage_pages_columns() {
    798798        $posts_columns = array();
    799         $posts_columns['cb'] = '<input type="checkbox" />';
     799        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    800800        $posts_columns['title'] = __('Title');
    801801        $posts_columns['author'] = __('Author');
    802802        $post_status = 'all';
     
    837837                        break;
    838838                case 'edit-comments':
    839839                        $_wp_column_headers[$page] = array(
    840                                 'cb' => '<input type="checkbox" />',
     840                                'cb' => '<input type="checkbox" alt="TODO" />',
    841841                                'author' => __('Author'),
    842842                                /* translators: column name */
    843843                                'comment' => _x('Comment', 'column name'),
     
    848848                        break;
    849849                case 'link-manager':
    850850                        $_wp_column_headers[$page] = array(
    851                                 'cb' => '<input type="checkbox" />',
     851                                'cb' => '<input type="checkbox" alt="TODO" />',
    852852                                'name' => __('Name'),
    853853                                'url' => __('URL'),
    854854                                'categories' => __('Categories'),
     
    862862                        break;
    863863                case 'categories':
    864864                        $_wp_column_headers[$page] = array(
    865                                 'cb' => '<input type="checkbox" />',
     865                                'cb' => '<input type="checkbox" alt="TODO" />',
    866866                                'name' => __('Name'),
    867867                                'description' => __('Description'),
    868868                                'slug' => __('Slug'),
     
    872872                        break;
    873873                case 'edit-link-categories':
    874874                        $_wp_column_headers[$page] = array(
    875                                 'cb' => '<input type="checkbox" />',
     875                                'cb' => '<input type="checkbox" alt="TODO" />',
    876876                                'name' => __('Name'),
    877877                                'description' => __('Description'),
    878878                                'slug' => __('Slug'),
     
    882882                        break;
    883883                case 'edit-tags':
    884884                        $_wp_column_headers[$page] = array(
    885                                 'cb' => '<input type="checkbox" />',
     885                                'cb' => '<input type="checkbox" alt="TODO" />',
    886886                                'name' => __('Name'),
    887887                                'description' => __('Description'),
    888888                                'slug' => __('Slug'),
     
    892892                        break;
    893893                case 'users':
    894894                        $_wp_column_headers[$page] = array(
    895                                 'cb' => '<input type="checkbox" />',
     895                                'cb' => '<input type="checkbox" alt="TODO" />',
    896896                                'username' => __('Username'),
    897897                                'name' => __('Name'),
    898898                                'email' => __('E-mail'),
     
    13931393
    13941394                case 'cb':
    13951395                ?>
    1396                 <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>
     1396                <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>
    13971397                <?php
    13981398                break;
    13991399
     
    16141614
    16151615        case 'cb':
    16161616                ?>
    1617                 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th>
     1617                <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" alt="TODO" /></th>
    16181618                <?php
    16191619                break;
    16201620        case 'date':
     
    19171917                $edit .= '</div>';
    19181918
    19191919                // Set up the checkbox (because the user is editable, otherwise its empty)
    1920                 $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />";
     1920                $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' alt='TODO' />";
    19211921
    19221922        } else {
    19231923                $edit = '<strong>' . $user_object->user_login . '</strong>';
     
    21122112                        case 'cb':
    21132113                                if ( !$checkbox ) break;
    21142114                                echo '<th scope="row" class="check-column">';
    2115                                 if ( $user_can ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' />";
     2115                                if ( $user_can ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' alt='TODO' />";
    21162116                                echo '</th>';
    21172117                                break;
    21182118                        case 'comment':
     
    24902490        }
    24912491?>
    24922492</select>
    2493 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
     2493<input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" alt="TODO" />
    24942494<a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">
    24952495<span id="enternew"><?php _e('Enter new'); ?></span>
    24962496<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a>
    24972497<?php } else { ?>
    2498 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
     2498<input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" alt="TODO"/>
    24992499<?php } ?>
    25002500</td>
    2501 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8"></textarea></td>
     2501<td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8" alt="TODO"></textarea></td>
    25022502</tr>
    25032503
    25042504<tr><td colspan="2" class="submit">
     
    25572557        }
    25582558        $month .= '</select>';
    25592559
    2560         $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    2561         $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
    2562         $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    2563         $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     2560        $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2561        $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2562        $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2563        $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
    25642564        /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
    25652565        printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
    25662566
  • 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 attr($term) ?>" />
     161        <input type="text" name="s" size="30" value="<?php echo attr($term) ?>" alt="TODO" />
    162162        <input type="submit" name="search" value="<?php _ea('Search'); ?>" class="button" />
    163163</form>
    164164<?php