Fix the position of the search field on all admin pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -119,8 +119,16 @@ $messages[4] = __('Category not added.');
|
||||
$messages[5] = __('Category not updated.');
|
||||
?>
|
||||
|
||||
<?php if (isset($_GET['message'])) : ?>
|
||||
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||
<form class="search-form" action="" method="get">
|
||||
<p id="category-search" class="search-box">
|
||||
<label class="hidden" for="category-search-input"><?php _e('Search Categories'); ?></label>
|
||||
<input type="text" id="category-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||
endif; ?>
|
||||
|
||||
@@ -128,12 +136,6 @@ endif; ?>
|
||||
<form id="posts-filter" action="" method="get">
|
||||
<h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
|
||||
|
||||
<p id="category-search" class="search-box">
|
||||
<label class="hidden" for="category-search-input"><?php _e('Search Categories'); ?></label>
|
||||
<input type="text" id="category-search-input" class="search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
|
||||
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
|
||||
</p>
|
||||
|
||||
<br class="clear" />
|
||||
|
||||
<div class="tablenav">
|
||||
|
||||
Reference in New Issue
Block a user