Ticket #7435: comment-action-link-classes.diff
File comment-action-link-classes.diff, 1.1 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/template.php
1034 1034 } 1035 1035 1036 1036 if ( 'spam' != $the_comment_status ) 1037 $actions['reply'] = '<span class="hide-if-no-js"> | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" class="vim-r" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a></span>';1037 $actions['reply'] = array(' | <a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" class="vim-r" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>', 'hide-if-no-js'); 1038 1038 1039 1039 $actions = apply_filters( 'comment_row_actions', $actions, $comment ); 1040 1040 1041 foreach ( $actions as $action => $link ) 1042 echo "<span class='$action'>$link</span>\n"; 1041 foreach ( $actions as $action => $link ) { 1042 if (is_array($link) && count($link > 1)) 1043 echo "<span class='$action $link[1]'>$link[0]</span>\n"; 1044 else 1045 echo "<span class='$action'>$link</span>\n"; 1046 } 1043 1047 } 1044 1048 ?> 1045 1049 </td>