WordPress.org

Make WordPress Core

Ticket #5962: invalid-html.diff

File invalid-html.diff, 13.9 KB (added by nbachiyski, 6 years ago)
  • wp-admin/users.php

     
    320320                <p><a href="users.php"><?php _e('&laquo; Back to All Users'); ?></a></p> 
    321321        <?php endif; ?> 
    322322 
    323 <form action="" method="post" name="updateusers" id="updateusers"> 
    324 <?php wp_nonce_field('bulk-users') ?> 
    325323<table class="widefat"> 
    326324<tbody> 
    327325<tr class="thead"> 
  • wp-admin/edit-comments.php

     
    9696<input type="hidden" name="page" value="<?php echo $page; ?>" /> 
    9797<input type="hidden" name="s" value="<?php echo attribute_escape(@$_GET['s']); ?>" /> 
    9898<?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?> 
     99</form> 
    99100</div> 
    100101<?php endif; // $extra_comments ?> 
    101102 
  • wp-admin/includes/widgets.php

     
    124124?> 
    125125 
    126126                <ul class="widget-control-list"> 
    127  
     127                        <li /> 
    128128<?php 
    129129        foreach ( $widgets as $key => $widget ) 
    130130                wp_widget_control( $key, $widget, $key == $edit_widget ? 'edit' : 'display' ); 
     
    170170 
    171171                                <?php else : ?> 
    172172 
    173                                 <a class="widget-action widget-control-edit" href="<?php echo add_query_arg( array( 'edit' => $id_format, 'key' => $key ) ); ?>"><?php _e('Edit'); ?></a> 
     173                                <a class="widget-action widget-control-edit" href="<?php echo clean_url( add_query_arg( array( 'edit' => $id_format, 'key' => $key ) ) ); ?>"><?php _e('Edit'); ?></a> 
    174174 
    175175                                <?php endif; ?> 
    176176 
     
    196196 
    197197                                        <?php endif; ?> 
    198198 
    199                                         <a class="widget-action widget-control-remove delete alignright" href="<?php echo add_query_arg( array( 'remove' => $id_format, 'key' => $key ), wp_nonce_url( null, "remove-widget_$widget[id]" ) ); ?>"><?php _e('Remove'); ?></a> 
     199                                        <a class="widget-action widget-control-remove delete alignright" href="<?php echo clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key ), wp_nonce_url( null, "remove-widget_$widget[id]" ) ) ); ?>"><?php _e('Remove'); ?></a> 
    200200                                        <br class="clear" /> 
    201201                                </div> 
    202202                        </div> 
  • wp-admin/includes/template.php

     
    8484                '<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' . 
    8585                "<td>$edit</td> 
    8686                <td>$category->description</td> 
    87                 <td align='center'>$count</td>"; 
     87                <td align='center'>$count</td></tr>"; 
    8888 
    8989        return apply_filters( 'link_cat_row', $output ); 
    9090} 
     
    236236                $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>'; 
    237237                $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>'; 
    238238                $out .= '<td><a href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '">' . 
    239                         apply_filters( 'term_name', $tag->name ) . '</td>'; 
     239                        apply_filters( 'term_name', $tag->name ) . '</a></td>'; 
    240240 
    241241                $out .= "<td>$count</td>"; 
    242242                $out .= '</tr>'; 
     
    403403                if ( empty($title) ) 
    404404                        $title = __('(no title)'); 
    405405                ?> 
    406                 <td><strong><a href="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong> 
     406                <td><strong><a href="page.php?action=edit&amp;post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong> 
    407407                <?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td> 
    408408                <?php 
    409409                break; 
     
    543543                $short_url =  substr( $short_url, 0, 32 ).'...'; 
    544544        $numposts = get_usernumposts( $user_object->ID ); 
    545545        if ( current_user_can( 'edit_user', $user_object->ID ) ) { 
    546                 $edit = add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ); 
     546                $edit = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) ); 
    547547                $edit = "<a href=\"$edit\">$user_object->user_login</a>"; 
    548548        } else { 
    549549                $edit = $user_object->user_login; 
     
    616616<?php 
    617617if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 
    618618        echo " <a href='comment.php?action=editcomment&amp;c=$id'>" .  __('Edit') . '</a>'; 
    619         $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) ); 
     619        $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "delete-comment_$id" ) ); 
    620620        echo " | <a href='$url' class='delete:the-comment-list:comment-$id'>" . __('Delete') . '</a> '; 
    621621        if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) { 
    622                 $url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$id", "unapprove-comment_$id" ) ); 
     622                $url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "unapprove-comment_$id" ) ); 
    623623                echo "<span class='unapprove'> | <a href='$url' class='dim:the-comment-list:comment-$id:unapproved:FFFF33'>" . __('Unapprove') . '</a> </span>'; 
    624                 $url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$id", "approve-comment_$id" ) ); 
     624                $url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "approve-comment_$id" ) ); 
    625625                echo "<span class='approve'> | <a href='$url' class='dim:the-comment-list:comment-$id:unapproved:33FF33:33FF33'>" . __('Approve') . '</a> </span>'; 
    626626        } 
    627         $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) ); 
     627        $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;dt=spam&amp;p=$comment->comment_post_ID&amp;c=$id", "delete-comment_$id" ) ); 
    628628        echo " | <a href='$url' class='delete:the-comment-list:comment-$id::spam=1'>" . __('Spam') . '</a> '; 
    629629} 
    630630if ( !is_single() ) { 
  • wp-admin/includes/media.php

     
    145145        $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID); 
    146146        $multimedia_upload_iframe_src = "media-upload.php?type=multimedia&amp;post_id=$uploading_iframe_ID"; 
    147147        $multimedia_upload_iframe_src = apply_filters('multimedia_upload_iframe_src', $multimedia_upload_iframe_src); 
    148         echo "<a href='$multimedia_upload_iframe_src&TB_iframe=true&height=500&width=640' class='button thickbox'>" . __('Add media'). '</a>'; 
     148        echo "<a href='$multimedia_upload_iframe_src&amp;TB_iframe=true&amp;height=500&amp;width=640' class='button thickbox'>" . __('Add media'). '</a>'; 
    149149} 
    150150add_action( 'media_buttons', 'media_buttons' ); 
    151151 
  • wp-admin/edit-post-rows.php

     
    6868                if ( empty($title) ) 
    6969                        $title = __('(no title)'); 
    7070                ?> 
    71                 <td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php echo $title ?></a></strong> 
     71                <td><strong><a href="post.php?action=edit&amp;post=<?php the_ID(); ?>"><?php echo $title ?></a></strong> 
    7272                <?php if ('private' == $post->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td> 
    7373                <?php 
    7474                break; 
  • wp-admin/moderation.php

     
    171171                                        | <?php _e( 'IP:' ); ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP(); ?>"><?php comment_author_IP(); ?></a> 
    172172                                </p> 
    173173 
    174                                 <p> 
    175                                         <?php comment_text(); ?> 
    176                                 </p> 
     174                                <?php comment_text(); ?> 
    177175 
    178176                                <p> 
    179177                                        <?php comment_date( __( 'M j, g:i A' ) ); ?> 
     
    237235                </script> 
    238236        </form> 
    239237</div> 
    240 <?php include_once './admin-footer.php'; ?> 
    241  No newline at end of file 
     238<?php include_once './admin-footer.php'; ?> 
  • wp-admin/edit-attachment-rows.php

     
    4646 
    4747        case 'media': 
    4848                ?> 
    49                 <td><strong><a href="# TODO: upload.php?action=edit&post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br /> 
     49                <td><strong><a href="# TODO: upload.php?action=edit&amp;post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br /> 
    5050                <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?> 
    5151                <?php do_action('manage_media_media_column', $post->ID); ?> 
    5252                </td> 
     
    8585                if ( empty($title) ) 
    8686                        $title = __('(no title)'); 
    8787                ?> 
    88                 <td><strong><a href="post.php?action=edit&post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td> 
     88                <td><strong><a href="post.php?action=edit&amp;post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td> 
    8989                <?php 
    9090                break; 
    9191 
  • wp-admin/options-discussion.php

     
    5151<br /> 
    5252<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label> 
    5353<br /> 
    54 <label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label></li> 
    55 </ul> 
     54<label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label> 
    5655</td> 
    5756</tr> 
    5857<tr valign="top"> 
  • wp-admin/plugins.php

     
    152152        <?php 
    153153        } // endif active/inactive plugin check 
    154154        ?> 
     155        </td> 
    155156</tr> 
    156157 
    157158</table> 
  • wp-admin/link-manager.php

     
    211211?> 
    212212        </tbody> 
    213213</table> 
     214 
     215<?php } else { ?> 
     216<p><?php _e('No links found.') ?></p> 
     217<?php } ?> 
    214218</form> 
    215219 
    216220<div id="ajax-response"></div> 
     
    219223<br style="clear:both;" /> 
    220224</div> 
    221225 
    222 <?php } ?> 
    223226 
    224227</div> 
    225228 
  • wp-admin/widgets.php

     
    181181        <h2><?php _e( 'Widgets' ); ?></h2> 
    182182        <p id="widget-search"> 
    183183                <input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" /> 
    184                 <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" class="button" /> 
     184                <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" /> 
    185185        </p> 
    186186 
    187187        <div class="widget-liquid-left-holder"> 
  • wp-admin/options-permalink.php

     
    130130<table class="niceblue"> 
    131131        <tr> 
    132132                <th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th> 
    133                 <td><code><?php echo get_option('home'); ?>/?p=123</code></span></td> 
     133                <td><code><?php echo get_option('home'); ?>/?p=123</code></td> 
    134134        </tr> 
    135135        <tr> 
    136136                <th><label><input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Date and name based'); ?></label></th> 
  • wp-admin/options-writing.php

     
    7676<label for="medium_size_w"><?php _e('Width'); ?></label> 
    7777<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" /> 
    7878<label for="medium_size_h"><?php _e('Height'); ?></label> 
    79 <input name="medium_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" /> 
     79<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" /> 
    8080</td> 
    8181</tr> 
    8282</table> 
     
    128128 
    129129<?php else : ?> 
    130130 
    131         <p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog\'s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?> 
     131        <p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog\'s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?></p> 
    132132 
    133133<?php endif; ?> 
    134134 
  • wp-admin/edit-pages.php

     
    5353} 
    5454 
    5555?> 
    56 <script> 
     56<script type="text/javascript"> 
    5757/* <![CDATA[ */ 
    5858jQuery(function($){$('#the-list').wpList();}); 
    5959/* ]]> */ 
     
    146146<?php 
    147147} else { 
    148148?> 
     149</form> 
    149150<p><?php _e('No pages found.') ?></p> 
    150151<?php 
    151152} // end if ($posts)