Remove a dead variable, $start
, from wp_dashboard_recent_comments()
.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4b6d5b10d4
commit
4c6f405ee7
@ -765,7 +765,6 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
|
|||||||
|
|
||||||
// Select all comment types and filter out spam later for better query performance.
|
// Select all comment types and filter out spam later for better query performance.
|
||||||
$comments = array();
|
$comments = array();
|
||||||
$start = 0;
|
|
||||||
|
|
||||||
$comments_query = array(
|
$comments_query = array(
|
||||||
'number' => $total_items * 5,
|
'number' => $total_items * 5,
|
||||||
@ -786,8 +785,6 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
|
|||||||
$comments_query['number'] = $total_items * 10;
|
$comments_query['number'] = $total_items * 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( $comments ) {
|
if ( $comments ) {
|
||||||
echo '<div id="latest-comments" class="activity-block">';
|
echo '<div id="latest-comments" class="activity-block">';
|
||||||
echo '<h4>' . __( 'Comments' ) . '</h4>';
|
echo '<h4>' . __( 'Comments' ) . '</h4>';
|
||||||
|
Loading…
Reference in New Issue
Block a user