Show row actions on focus for the dashboard comment list.
see #25408. git-svn-id: https://develop.svn.wordpress.org/trunk@33106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e6e1e6612
commit
8209a24d85
|
@ -627,7 +627,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||
|
||||
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
|
||||
|
||||
<div class="dashboard-comment-wrap">
|
||||
<div class="dashboard-comment-wrap has-row-actions">
|
||||
<h4 class="comment-meta">
|
||||
<?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ),
|
||||
'<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link.' '.$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?>
|
||||
|
@ -647,7 +647,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||
}
|
||||
$type = esc_html( $type );
|
||||
?>
|
||||
<div class="dashboard-comment-wrap">
|
||||
<div class="dashboard-comment-wrap has-row-actions">
|
||||
<?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?>
|
||||
<h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link." ".$comment_link ); ?></h4>
|
||||
<p class="comment-author"><?php comment_author_link(); ?></p>
|
||||
|
|
|
@ -485,7 +485,7 @@ $(document).ready( function() {
|
|||
focusedRowActions.removeClass( 'visible' );
|
||||
}, 30 );
|
||||
}
|
||||
}, 'td.has-row-actions' );
|
||||
}, '.has-row-actions' );
|
||||
|
||||
// Toggle list table rows on small screens
|
||||
$( 'tbody' ).on( 'click', '.toggle-row', function() {
|
||||
|
|
Loading…
Reference in New Issue