WordPress.org

Make WordPress Core

Ticket #7552: search-boxes-nocss.patch

File search-boxes-nocss.patch, 5.2 KB (added by Viper007Bond, 6 years ago)

Restore search boxes, leave CSS to whoever will be reorganizing the filters, etc.

  • wp-admin/categories.php

     
    140140<div class="wrap"> 
    141141 
    142142<form id="posts-filter" action="" method="get"> 
     143 
     144<p id="post-search"> 
     145        <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label> 
     146        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     147        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> 
     148</p> 
     149 
    143150<div class="tablenav"> 
    144151 
    145152<?php 
  • wp-admin/edit-comments.php

     
    173173</form> 
    174174</div> 
    175175 
     176<form id="posts-filter" action="" method="get"> 
     177 
     178<p id="post-search"> 
     179        <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> 
     180        <input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" /> 
     181        <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" /> 
     182</p> 
     183 
     184</form> 
     185 
    176186<?php 
    177187$comments_per_page = apply_filters('comments_per_page', 20, $comment_status); 
    178188 
  • wp-admin/edit-link-categories.php

     
    7676<div class="wrap"> 
    7777 
    7878<form id="posts-filter" action="" method="get"> 
     79 
     80<p id="post-search"> 
     81        <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label> 
     82        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     83        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> 
     84</p> 
     85 
    7986<div class="tablenav"> 
    8087 
    8188<?php 
  • wp-admin/edit-pages.php

     
    165165 
    166166<form id="posts-filter" action="" method="get"> 
    167167 
     168<p id="post-search"> 
     169        <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label> 
     170        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     171        <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" /> 
     172</p> 
     173 
    168174<?php if ( isset($_GET['post_status'] ) ) : ?> 
    169175<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> 
    170176<?php endif; ?> 
  • wp-admin/edit-tags.php

     
    143143<div class="wrap"> 
    144144 
    145145<form id="posts-filter" action="" method="get"> 
     146 
     147<p id="post-search"> 
     148        <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label> 
     149        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     150        <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" /> 
     151</p> 
     152 
    146153<div class="tablenav"> 
    147154 
    148155<?php 
  • wp-admin/edit.php

     
    204204 
    205205<form id="posts-filter" action="" method="get"> 
    206206 
     207<p id="post-search"> 
     208        <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label> 
     209        <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
     210        <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" /> 
     211</p> 
     212 
    207213<?php if ( isset($_GET['post_status'] ) ) : ?> 
    208214<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> 
    209215<?php endif; ?> 
  • wp-admin/link-manager.php

     
    120120</form> 
    121121 
    122122<form id="posts-filter" action="" method="get"> 
     123 
     124<p id="post-search"> 
     125        <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label> 
     126        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     127        <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" /> 
     128</p> 
     129 
    123130<div class="tablenav"> 
    124131 
    125132<div class="alignleft"> 
  • wp-admin/upload.php

     
    254254 
    255255<form id="posts-filter" action="" method="get"> 
    256256 
     257<p id="post-search"> 
     258        <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label> 
     259        <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
     260        <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" /> 
     261</p> 
     262 
    257263<div class="tablenav"> 
    258264<?php 
    259265if ( ! isset($page_links_total) )