Remove remnants from widgets search, see #9511

git-svn-id: https://develop.svn.wordpress.org/trunk@11041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-04-22 01:06:15 +00:00
parent 3c2fd1ca40
commit e3830feb21
2 changed files with 27 additions and 74 deletions
-14
View File
@@ -311,20 +311,6 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
exit;
}
/*
// Unsanitized!
$widget_search = isset($_GET['s']) ? $_GET['s'] : false;
// Not entirely sure what all should be here
$show_values = array(
'' => $widget_search ? __( 'Show any widgets' ) : __( 'Show all widgets' ),
'unused' => __( 'Show unused widgets' ),
'used' => __( 'Show used widgets' )
);
$show = isset($_GET['show']) && isset($show_values[$_GET['show']]) ? attribute_escape( $_GET['show'] ) : false;
*/
$messages = array(
__('Changes saved.')
);