Make WordPress Core


Ignore:
Timestamp:
09/11/2008 06:54:05 PM (18 years ago)
Author:
azaozz
Message:

Fix the position of the search field on all admin pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r8839 r8867  
    120120?>
    121121
    122 <?php if (isset($_GET['message'])) : ?>
    123 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
     122<form class="search-form" action="" method="get">
     123    <p id="category-search" class="search-box">
     124        <label class="hidden" for="category-search-input"><?php _e('Search Categories'); ?></label>
     125        <input type="text" id="category-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
     126        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
     127    </p>
     128</form>
     129
     130<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
     131<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
    124132<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    125133endif; ?>
     
    128136<form id="posts-filter" action="" method="get">
    129137    <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    130 
    131 <p id="category-search" class="search-box">
    132     <label class="hidden" for="category-search-input"><?php _e('Search Categories'); ?></label>
    133     <input type="text" id="category-search-input" class="search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    134     <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
    135 </p>
    136138
    137139<br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.