Change order of links to match buttons above.
git-svn-id: https://develop.svn.wordpress.org/trunk@7286 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d749413cd
commit
cf76b3d7c1
|
@ -647,11 +647,9 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$actions = array();
|
$actions = array();
|
||||||
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
|
|
||||||
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1' title='" . __( 'Mark this comment as spam' ) . "'>" . __( 'Spam' ) . '</a> | ';
|
$actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a> | ';
|
||||||
$actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('Delete') . '</a> | ';
|
$actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a> | ';
|
||||||
$actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
|
||||||
$actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
|
||||||
|
|
||||||
// we're looking at list of only approved or only unapproved comments
|
// we're looking at list of only approved or only unapproved comments
|
||||||
if ( 'moderated' == $comment_status ) {
|
if ( 'moderated' == $comment_status ) {
|
||||||
|
@ -662,6 +660,9 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
|
||||||
unset($actions['approve']);
|
unset($actions['approve']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
|
||||||
|
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1' title='" . __( 'Mark this comment as spam' ) . "'>" . __( 'Spam' ) . '</a> | ';
|
||||||
|
$actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('Delete') . '</a>';
|
||||||
foreach ( $actions as $action => $link )
|
foreach ( $actions as $action => $link )
|
||||||
echo "<span class='$action'>$link</span>";
|
echo "<span class='$action'>$link</span>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue