Show row actions on focus for the dashboard comment list.

see #25408.

Built from https://develop.svn.wordpress.org/trunk@33106


git-svn-id: http://core.svn.wordpress.org/trunk@33077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-07-07 15:26:24 +00:00
parent 958cde5134
commit 0b046085ae
4 changed files with 5 additions and 5 deletions

View File

@ -627,7 +627,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?> <?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"> <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' ), <?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>' ); ?> '<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 ); $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 */ ?> <?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> <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> <p class="comment-author"><?php comment_author_link(); ?></p>

View File

@ -485,7 +485,7 @@ $(document).ready( function() {
focusedRowActions.removeClass( 'visible' ); focusedRowActions.removeClass( 'visible' );
}, 30 ); }, 30 );
} }
}, 'td.has-row-actions' ); }, '.has-row-actions' );
// Toggle list table rows on small screens // Toggle list table rows on small screens
$( 'tbody' ).on( 'click', '.toggle-row', function() { $( 'tbody' ).on( 'click', '.toggle-row', function() {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta1-33105'; $wp_version = '4.3-beta1-33106';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.