WordPress.org

Make WordPress Core

Ticket #7703: 7703.patch

File 7703.patch, 12.7 KB (added by Viper007Bond, 10 years ago)

Fixed most (but purposely not all) validation errors

  • wp-admin/categories.php

     
    174174
    175175<div class="alignleft">
    176176<select name="action">
    177 <option value="" selected><?php _e('Actions'); ?></option>
     177<option value="" selected="selected"><?php _e('Actions'); ?></option>
    178178<option value="delete"><?php _e('Delete'); ?></option>
    179179</select>
    180180<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    214214
    215215<div class="alignleft">
    216216<select name="action2">
    217 <option value="" selected><?php _e('Actions'); ?></option>
     217<option value="" selected="selected"><?php _e('Actions'); ?></option>
    218218<option value="delete"><?php _e('Delete'); ?></option>
    219219</select>
    220220<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
  • wp-admin/edit-link-categories.php

     
    110110
    111111<div class="alignleft">
    112112<select name="action">
    113 <option value="" selected><?php _e('Actions'); ?></option>
     113<option value="" selected="selected"><?php _e('Actions'); ?></option>
    114114<option value="delete"><?php _e('Delete'); ?></option>
    115115</select>
    116116<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    166166
    167167<div class="alignleft">
    168168<select name="action2">
    169 <option value="" selected><?php _e('Actions'); ?></option>
     169<option value="" selected="selected"><?php _e('Actions'); ?></option>
    170170<option value="delete"><?php _e('Delete'); ?></option>
    171171</select>
    172172<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
  • wp-admin/edit-link-form.php

     
    411411</div>
    412412</div>
    413413
     414</form>
    414415</div>
    415 </form>
  • wp-admin/edit-tags.php

     
    177177
    178178<div class="alignleft">
    179179<select name="action">
    180 <option value="" selected><?php _e('Actions'); ?></option>
     180<option value="" selected="selected"><?php _e('Actions'); ?></option>
    181181<option value="delete"><?php _e('Delete'); ?></option>
    182182</select>
    183183<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    220220
    221221<div class="alignleft">
    222222<select name="action2">
    223 <option value="" selected><?php _e('Actions'); ?></option>
     223<option value="" selected="selected"><?php _e('Actions'); ?></option>
    224224<option value="delete"><?php _e('Delete'); ?></option>
    225225</select>
    226226<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
  • wp-admin/includes/dashboard.php

     
    370370                        <p class="comment-actions"><?php echo $actions_string; ?></p>
    371371
    372372                        <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    373                                 <textarea class="comment"><?php echo $comment->comment_content; ?></textarea>
     373                                <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
    374374                                <div class="author-email"><?php echo attribute_escape( $comment->comment_author_email ); ?></div>
    375375                                <div class="author"><?php echo attribute_escape( $comment->comment_author ); ?></div>
    376376                                <div class="author-url"><?php echo attribute_escape( $comment->comment_author_url ); ?></div>
  • wp-admin/includes/template.php

     
    10161016                                <div <?php echo $attributes ?> title="<?php _e('Tags'); ?>">
    10171017                                        <div class="title"><?php _e('Tags'); ?></div>
    10181018                                        <div class="in">
    1019                                         <textarea cols="22" rows="1" type="text" name="tags_input" class="tags_input"></textarea>
     1019                                        <textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
    10201020                                        </div>
    10211021                                </div>
    10221022                                <?php }
     
    18711871                                echo "<td $attributes>";
    18721872                                if ( 'detail' == $mode || 'single' == $mode ) comment_text(); ?>
    18731873                                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    1874                                 <textarea class="comment"><?php echo $comment->comment_content; ?></textarea>
     1874                                <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
    18751875                                <div class="author-email"><?php echo attribute_escape( $comment->comment_author_email ); ?></div>
    18761876                                <div class="author"><?php echo attribute_escape( $comment->comment_author ); ?></div>
    18771877                                <div class="author-url"><?php echo attribute_escape( $comment->comment_author_url ); ?></div>
  • wp-admin/link-manager.php

     
    135135
    136136<div class="alignleft">
    137137<select name="action">
    138 <option value="" selected><?php _e('Actions'); ?></option>
     138<option value="" selected="selected"><?php _e('Actions'); ?></option>
    139139<option value="delete"><?php _e('Delete'); ?></option>
    140140</select>
    141141<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    266266
    267267<div class="alignleft">
    268268<select name="action2">
    269 <option value="" selected><?php _e('Actions'); ?></option>
     269<option value="" selected="selected"><?php _e('Actions'); ?></option>
    270270<option value="delete"><?php _e('Delete'); ?></option>
    271271</select>
    272272<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
  • wp-admin/media-upload.php

     
    5757        require_once('admin-header.php'); ?>
    5858        <div class="wrap">
    5959
    60         <form enctype="multipart/form-data" method="post" action="media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form">
     60        <form enctype="multipart/form-data" method="post" action="media-upload.php?inline=&amp;upload-page-form=" class="media-upload-form type-form validate" id="file-form">
    6161       
    6262        <?php media_upload_form(); ?>
    6363       
  • wp-admin/options-general.php

     
    134134</td>
    135135</tr>
    136136<tr>
    137 <th scope="row"><label for="date_format"><?php _e('Date Format') ?></label></th>
     137<th scope="row"><?php _e('Date Format') ?></th>
    138138<td>
    139139        <fieldset><legend class="hidden"><?php _e('Date Format') ?></legend>
    140140<?php
     
    159159
    160160        echo '  <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
    161161        checked( $custom, TRUE );
    162         echo '/> ' . __('Custom') . ': </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" size="30" /> ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "</label>\n";
     162        echo '/> ' . __('Custom') . ': </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" size="30" /> ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "\n";
    163163
    164164        echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Save Changes" to update sample output.') . "</p>\n";
    165165?>
     
    167167</td>
    168168</tr>
    169169<tr>
    170 <th scope="row"><label for="time_format"><?php _e('Time Format') ?></label></th>
     170<th scope="row"><?php _e('Time Format') ?></th>
    171171<td>
    172172        <fieldset><legend class="hidden"><?php _e('Time Format') ?></legend>
    173173<?php
     
    191191
    192192        echo '  <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
    193193        checked( $custom, TRUE );
    194         echo '/> ' . __('Custom') . ': </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" size="30" /> ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "</label>\n";
     194        echo '/> ' . __('Custom') . ': </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" size="30" /> ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "\n";
    195195?>
    196196        </fieldset>
    197197</td>
  • wp-admin/options-writing.php

     
    146146<?php endif; ?>
    147147
    148148<h3><?php _e('Press This') ?></h3>
    149 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?>  <a href="<?php echo get_shortcut_link(); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
     149<p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?>  <a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
    150150
    151151<?php do_settings_sections('writing'); ?>
    152152
  • wp-admin/plugins.php

     
    346346<div class="tablenav">
    347347        <div class="alignleft">
    348348                <select name="action">
    349                         <option value="" selected><?php _e('Actions'); ?></option>
     349                        <option value="" selected="selected"><?php _e('Actions'); ?></option>
    350350                        <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
    351351                </select>
    352352                <input type="submit" name="doaction_active" value="<?php _e('Apply'); ?>" class="button-secondary action" />
     
    368368<div class="tablenav">
    369369        <div class="alignleft">
    370370                <select name="action">
    371                         <option value="" selected><?php _e('Actions'); ?></option>
     371                        <option value="" selected="selected"><?php _e('Actions'); ?></option>
    372372                        <option value="activate-selected"><?php _e('Activate'); ?></option>
    373373<?php if( current_user_can('delete_plugins') ) : ?>
    374374                        <option value="delete-selected"><?php _e('Delete'); ?></option>
  • wp-admin/themes.php

     
    163163        $screenshot = $themes[$theme_name]['Screenshot'];
    164164        $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
    165165        $preview_link = clean_url( get_option('home') . '/');
    166         $preview_link = add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true', 'width' => 600, 'height' => 400 ), $preview_link );
     166        $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true', 'width' => 600, 'height' => 400 ), $preview_link ) );
    167167        $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) );
    168168        $tags = $themes[$theme_name]['Tags'];
    169169        $thickbox_class = 'thickbox';
  • wp-admin/users.php

     
    316316
    317317<div class="alignleft">
    318318<select name="action">
    319 <option value="" selected><?php _e('Actions'); ?></option>
     319<option value="" selected="selected"><?php _e('Actions'); ?></option>
    320320<option value="delete"><?php _e('Delete'); ?></option>
    321321</select>
    322322<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     
    384384
    385385<div class="alignleft">
    386386<select name="action2">
    387 <option value="" selected><?php _e('Actions'); ?></option>
     387<option value="" selected="selected"><?php _e('Actions'); ?></option>
    388388<option value="delete"><?php _e('Delete'); ?></option>
    389389</select>
    390390<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />