Remove unneeded stripslashes. see #14543.
git-svn-id: https://develop.svn.wordpress.org/trunk@16923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dc821cedbf
commit
fc524daa7f
@ -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