mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
f4c1734b60
commit
1050da7bce
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user