mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Fix the position of the search field on all admin pages.
git-svn-id: https://develop.svn.wordpress.org/trunk@8867 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -101,9 +101,6 @@ if ( $http_post && isset($sidebars_widgets[$_POST['sidebar']]) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// What widget (if any) are we editing
|
||||
$edit_widget = -1;
|
||||
|
||||
@@ -225,17 +222,22 @@ $show_values = array(
|
||||
|
||||
$show = isset($_GET['show']) && isset($show_values[$_GET['show']]) ? attribute_escape( $_GET['show'] ) : false;
|
||||
|
||||
|
||||
$messages = array(
|
||||
'updated' => __('Changes saved.')
|
||||
);
|
||||
|
||||
require_once( 'admin-header.php' );
|
||||
require_once( 'admin-header.php' ); ?>
|
||||
|
||||
if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
|
||||
<form class="search-form" action="" method="get">
|
||||
<p id="widget-search" class="search-box">
|
||||
<label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?></label>
|
||||
<input type="text" id="widget-search-input" class="search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
|
||||
<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
|
||||
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wrap">
|
||||
@@ -243,11 +245,6 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
|
||||
<form id="widgets-filter" action="" method="get">
|
||||
|
||||
<h2><?php _e( 'Widgets' ); ?></h2>
|
||||
<p id="widget-search" class="search-box">
|
||||
<label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?></label>
|
||||
<input type="text" id="widget-search-input" class="search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
|
||||
<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
|
||||
</p>
|
||||
|
||||
<div class="widget-liquid-left-holder">
|
||||
<div id="available-widgets-filter" class="widget-liquid-left">
|
||||
|
||||
Reference in New Issue
Block a user