Changeset 7169

Show
Ignore:
Timestamp:
03/06/08 10:09:14 (9 months ago)
Author:
matt
Message:

Clean up comments links, link to more comments pages not posts.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/comment.php

    r7104 r7169  
    170170        wp_redirect( wp_get_referer() ); 
    171171    else 
    172         wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '&c=1#comments' ); 
     172        wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' ); 
    173173 
    174174    exit(); 
     
    199199        wp_redirect( wp_get_referer() ); 
    200200    else 
    201         wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '&c=1#comments' ); 
     201        wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' ); 
    202202 
    203203    exit(); 
     
    213213    edit_comment(); 
    214214 
    215     $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_id; 
     215    $location = ( empty( $_POST['referredby'] ) ? "edit.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; 
    216216    $location = apply_filters( 'comment_edit_redirect', $location, $comment_id ); 
    217217    wp_redirect( $location ); 
  • trunk/wp-admin/edit-page-form.php

    r7146 r7169  
    140140<ul> 
    141141<?php if ($post_ID): ?> 
    142 <li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>&amp;c=1"><?php _e('See Comments on this Page') ?></a></li> 
     142<li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li> 
    143143<?php endif; ?> 
    144144<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 
  • trunk/wp-admin/edit-post-rows.php

    r7168 r7169  
    112112        if ( $left ) 
    113113            echo '<strong>'; 
    114         comments_number("<a href='edit.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>'); 
     114        comments_number("<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>'); 
    115115        if ( $left ) 
    116116            echo '</strong>'; 
  • trunk/wp-admin/includes/template.php

    r7144 r7169  
    406406        if ( $left ) 
    407407            echo '<strong>'; 
    408         comments_number("<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>'); 
     408        comments_number("<a href='edit-pages.php?page_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-pages.php?page_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-pages.php?page_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>'); 
    409409        if ( $left ) 
    410410            echo '</strong>'; 
     
    600600    $the_comment_status = wp_get_comment_status($comment->comment_ID); 
    601601    $class = ('unapproved' == $the_comment_status) ? 'unapproved' : ''; 
    602     $post_link = '<a href="' . get_comment_link() . '">' . get_the_title($comment->comment_post_ID) . '</a>'; 
     602    $post_link = '<a href="edit.php?p=' . $comment->comment_post_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>'; 
    603603    $author_url = get_comment_author_url(); 
    604604    if ( 'http://' == $author_url )