Make WordPress Core


Ignore:
Timestamp:
09/11/2008 06:54:05 PM (17 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/edit-link-categories.php

    r8839 r8867  
    5757$messages[5] = __('Category not updated.');
    5858$messages[6] = __('Categories deleted.');
     59?>
    5960
    60 if (isset($_GET['message'])) : ?>
    61 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
     61<form class="search-form" action="" method="get">
     62    <p id="link-category-search" class="search-box">
     63        <label class="hidden" for="link-category-search-input"><?php _e( 'Search Categories' ); ?></label>
     64        <input type="text" id="link-category-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
     65        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
     66    </p>
     67</form>
     68
     69<?php
     70if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
     71<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
    6272<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    6373endif; ?>
     
    6777<form id="posts-filter" action="" method="get">
    6878    <h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    69 
    70 <p id="link-category-search" class="search-box">
    71     <label class="hidden" for="link-category-search-input"><?php _e( 'Search Categories' ); ?></label>
    72     <input type="text" id="link-category-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
    73     <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
    74 </p>
    7579
    7680<br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.