mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Administration: Bring some consistency to handling list table view modes.
* Remove duplicate variables and DocBlocks. * Add missing description for the `$mode` global. * Use sentence case for "Compact view" and "Extended view" labels. Follow-up to [48398], [48423]. Props afercia, Offereins, SergeyBiryukov. See #49715. git-svn-id: https://develop.svn.wordpress.org/trunk@48424 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -756,10 +756,13 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
||||
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
|
||||
|
||||
$i = 0;
|
||||
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
|
||||
if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i ) || 1 === $i ) {
|
||||
if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i )
|
||||
|| 1 === $i
|
||||
) {
|
||||
$sep = '';
|
||||
} else {
|
||||
$sep = ' | ';
|
||||
|
||||
Reference in New Issue
Block a user