Remove unneeded stripslashes. see #14543.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-14 18:56:15 +00:00
parent f4c1734b60
commit 1050da7bce

View File

@ -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 );
}