Make WordPress Core

Changeset 15505


Ignore:
Timestamp:
08/18/2010 04:41:58 PM (14 years ago)
Author:
scribu
Message:

correct post id in comments_bubble()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/list-table.php

    r15504 r15505  
    269269    }
    270270
    271     /** Display a comment count bubble
    272      *
     271    /**
     272     * Display a comment count bubble
    273273     *
    274274     * @since 3.1.0
     
    284284            echo '<strong>';
    285285
    286         $link = "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
     286        $link = "<a href='" . add_query_arg( 'p', $post_id, admin_url('edit-comments.php') ) . "' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
    287287
    288288        comments_number(
Note: See TracChangeset for help on using the changeset viewer.