From fc524daa7f41463409110eb2ce2d369bcb82648b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 14 Dec 2010 18:56:15 +0000 Subject: [PATCH] Remove unneeded stripslashes. see #14543. git-svn-id: https://develop.svn.wordpress.org/trunk@16923 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 129c4ecd1c..fc5ca47076 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -755,7 +755,7 @@ function wp_dashboard_recent_comments_control() { $widget_options['dashboard_recent_comments'] = array(); if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-recent-comments']) ) { - $number = absint( stripslashes($_POST['widget-recent-comments']['items']) ); + $number = absint( $_POST['widget-recent-comments']['items'] ); $widget_options['dashboard_recent_comments']['items'] = $number; update_option( 'dashboard_widget_options', $widget_options ); }