WordPress.org

Make WordPress Core

Changeset 6980


Ignore:
Timestamp:
02/22/2008 05:30:43 PM (10 years ago)
Author:
ryan
Message:

Validation fixes from nbachiyski. fixes #5962

Location:
trunk/wp-admin
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r6974 r6980  
    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); ?>
     
    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;
  • trunk/wp-admin/edit-comments.php

    r6943 r6980  
    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 ?>
  • trunk/wp-admin/edit-pages.php

    r6950 r6980  
    5454
    5555?>
    56 <script>
     56<script type="text/javascript">
    5757/* <![CDATA[ */
    5858jQuery(function($){$('#the-list').wpList();});
     
    147147} else {
    148148?>
     149</form>
    149150<p><?php _e('No pages found.') ?></p>
    150151<?php
  • trunk/wp-admin/edit-post-rows.php

    r6936 r6980  
    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
  • trunk/wp-admin/includes/media.php

    r6974 r6980  
    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' );
  • trunk/wp-admin/includes/template.php

    r6961 r6980  
    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 );
     
    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>";
     
    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
     
    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 {
     
    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}
  • trunk/wp-admin/includes/widgets.php

    r6754 r6980  
    125125
    126126        <ul class="widget-control-list">
    127 
     127            <li />
    128128<?php
    129129    foreach ( $widgets as $key => $widget )
     
    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; ?>
     
    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>
  • trunk/wp-admin/link-manager.php

    r6950 r6980  
    212212    </tbody>
    213213</table>
     214
     215<?php } else { ?>
     216<p><?php _e('No links found.') ?></p>
     217<?php } ?>
    214218</form>
    215219
     
    220224</div>
    221225
    222 <?php } ?>
    223226
    224227</div>
  • trunk/wp-admin/moderation.php

    r6943 r6980  
    172172                </p>
    173173
    174                 <p>
    175                     <?php comment_text(); ?>
    176                 </p>
     174                <?php comment_text(); ?>
    177175
    178176                <p>
  • trunk/wp-admin/options-discussion.php

    r6978 r6980  
    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>
  • trunk/wp-admin/options-permalink.php

    r6978 r6980  
    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>
  • trunk/wp-admin/options-writing.php

    r6978 r6980  
    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>
     
    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; ?>
  • trunk/wp-admin/plugins.php

    r6726 r6980  
    153153    } // endif active/inactive plugin check
    154154    ?>
     155    </td>
    155156</tr>
    156157
  • trunk/wp-admin/users.php

    r6950 r6980  
    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>
  • trunk/wp-admin/widgets.php

    r6950 r6980  
    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
Note: See TracChangeset for help on using the changeset viewer.