From c265d8f1dace816302436537afefd4d301dcce27 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 1 Mar 2010 00:09:30 +0000 Subject: [PATCH] Boost number of comments allowed in configurable Recent Comments dashboard module. fixes #11891 git-svn-id: https://develop.svn.wordpress.org/trunk@13519 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index e53fc29479..5adc2b0a0e 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -640,7 +640,7 @@ function wp_dashboard_recent_comments_control() { if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-recent-comments']) ) { $number = (int) stripslashes($_POST['widget-recent-comments']['items']); - if ( $number < 1 || $number > 15 ) + if ( $number < 1 || $number > 30 ) $number = 5; $widget_options['dashboard_recent_comments']['items'] = $number; update_option( 'dashboard_widget_options', $widget_options ); @@ -649,7 +649,7 @@ function wp_dashboard_recent_comments_control() { $number = isset( $widget_options['dashboard_recent_comments']['items'] ) ? (int) $widget_options['dashboard_recent_comments']['items'] : ''; echo '

'; - echo ' ' . __( '(at most 15)' ) . '

'; + echo ' ' . __( '(at most 30)' ) . '

'; } function wp_dashboard_incoming_links() {