Make WordPress Core


Ignore:
Timestamp:
09/11/2008 06:54:05 PM (16 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/widgets.php

    r8841 r8867  
    101101    exit;
    102102}
    103 
    104 
    105 
    106103
    107104// What widget (if any) are we editing
     
    226223$show = isset($_GET['show']) && isset($show_values[$_GET['show']]) ? attribute_escape( $_GET['show'] ) : false;
    227224
    228 
    229225$messages = array(
    230226    'updated' => __('Changes saved.')
    231227);
    232228
    233 require_once( 'admin-header.php' );
    234 
    235 if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
    236 
    237 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
    238 
    239 <?php endif; ?>
    240 
    241 <div class="wrap">
    242 
    243     <form id="widgets-filter" action="" method="get">
    244 
    245     <h2><?php _e( 'Widgets' ); ?></h2>
     229require_once( 'admin-header.php' ); ?>
     230
     231<form class="search-form" action="" method="get">
    246232    <p id="widget-search" class="search-box">
    247233        <label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?></label>
     
    249235        <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
    250236    </p>
     237</form>
     238
     239<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
     240<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
     241<?php endif; ?>
     242
     243<div class="wrap">
     244
     245    <form id="widgets-filter" action="" method="get">
     246
     247    <h2><?php _e( 'Widgets' ); ?></h2>
    251248
    252249    <div class="widget-liquid-left-holder">
Note: See TracChangeset for help on using the changeset viewer.