<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[17006] trunk/wp-admin: Introduce WP_List_Table::search_box().</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17006">17006</a></dd>
<dt>Author</dt> <dd>scribu</dd>
<dt>Date</dt> <dd>2010-12-16 20:45:10 +0000 (Thu, 16 Dec 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Introduce WP_List_Table::search_box(). See <a href="http://trac.wordpress.org/ticket/15353">#15353</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditcommentsphp">trunk/wp-admin/edit-comments.php</a></li>
<li><a href="#trunkwpadminedittagsphp">trunk/wp-admin/edit-tags.php</a></li>
<li><a href="#trunkwpadmineditphp">trunk/wp-admin/edit.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablephp">trunk/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunkwpadminlinkmanagerphp">trunk/wp-admin/link-manager.php</a></li>
<li><a href="#trunkwpadminnetworksitethemesphp">trunk/wp-admin/network/site-themes.php</a></li>
<li><a href="#trunkwpadminnetworksiteusersphp">trunk/wp-admin/network/site-users.php</a></li>
<li><a href="#trunkwpadminnetworksitesphp">trunk/wp-admin/network/sites.php</a></li>
<li><a href="#trunkwpadminnetworkthemesphp">trunk/wp-admin/network/themes.php</a></li>
<li><a href="#trunkwpadminnetworkusersphp">trunk/wp-admin/network/users.php</a></li>
<li><a href="#trunkwpadminpluginsphp">trunk/wp-admin/plugins.php</a></li>
<li><a href="#trunkwpadminthemesphp">trunk/wp-admin/themes.php</a></li>
<li><a href="#trunkwpadminuploadphp">trunk/wp-admin/upload.php</a></li>
<li><a href="#trunkwpadminusersphp">trunk/wp-admin/users.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-comments.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-comments.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/edit-comments.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -220,16 +220,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;comments-form&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Comments' ), 'comment' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;comment-search-input&quot;&gt;&lt;?php _e( 'Search Comments' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;comment-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Comments' ), 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;?php if ( $post_id ) : ?&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;p&quot; value=&quot;&lt;?php echo esc_attr( intval( $post_id ) ); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tags.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tags.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/edit-tags.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -237,11 +237,9 @@
</span><span class="cx"> &lt;form class=&quot;search-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;taxonomy&quot; value=&quot;&lt;?php echo esc_attr($taxonomy); ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;post_type&quot; value=&quot;&lt;?php echo esc_attr($post_type); ?&gt;&quot; /&gt;
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;tag-search-input&quot;&gt;&lt;?php echo $tax-&gt;labels-&gt;search_items; ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;tag-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( $tax-&gt;labels-&gt;search_items, 'button', 'search-items', false ); ?&gt;
-&lt;/p&gt;
</del><ins>+
+&lt;?php $wp_list_table-&gt;search_box( $tax-&gt;labels-&gt;search_items, 'tag' ); ?&gt;
+
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadmineditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/edit.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -242,16 +242,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( $post_type_object-&gt;labels-&gt;search_items, 'post' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;post-search-input&quot;&gt;&lt;?php echo $post_type_object-&gt;labels-&gt;search_items; ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;post-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( $post_type_object-&gt;labels-&gt;search_items, 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;post_status&quot; class=&quot;post_status_page&quot; value=&quot;&lt;?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;post_type&quot; class=&quot;post_type_page&quot; value=&quot;&lt;?php echo $post_type; ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-list-table.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/includes/class-wp-list-table.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -179,6 +179,30 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><ins>+         * Display the search box.
+         *
+         * @since 3.1.0
+         * @access public
+         *
+         * @param string $text The search button text
+         * @param string $input_id The search input id 
+         */
+        function search_box( $text, $input_id ) {
+                if ( empty( $_REQUEST['s'] ) &amp;&amp; !$this-&gt;has_items() )
+                        return;
+
+                $input_id = $input_id . '-search-input';
+
+?&gt;
+&lt;p class=&quot;search-box&quot;&gt;
+        &lt;label class=&quot;screen-reader-text&quot; for=&quot;&lt;?php echo $input_id ?&gt;&quot;&gt;&lt;?php echo $text; ?&gt;:&lt;/label&gt;
+        &lt;input type=&quot;text&quot; id=&quot;&lt;?php echo $input_id ?&gt;&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
+        &lt;?php submit_button( $text, 'button', 'submit', false ); ?&gt;
+&lt;/p&gt;
+&lt;?php
+        }
+
+        /**
</ins><span class="cx">          * Get an associative array ( id =&gt; link ) with the list
</span><span class="cx">          * of views available on this table.
</span><span class="cx">          *
</span></span></pre></div>
<a id="trunkwpadminlinkmanagerphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/link-manager.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/link-manager.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/link-manager.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -76,16 +76,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Links' ), 'link' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;link-search-input&quot;&gt;&lt;?php _e( 'Search Links' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;link-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Links' ), 'button', '', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;?php $wp_list_table-&gt;display(); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminnetworksitethemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/site-themes.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/site-themes.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/network/site-themes.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -152,11 +152,7 @@
</span><span class="cx"> &lt;p&gt;&lt;?php _e( 'Network enabled themes are not shown on this screen.' ) ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;&quot;&gt;
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;theme-search-input&quot;&gt;&lt;?php _e( 'Search Themes' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;theme-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Installed Themes' ), 'button', '', false ); ?&gt;
-&lt;/p&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Installed Themes' ), 'theme' ); ?&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php $wp_list_table-&gt;views(); ?&gt;
</span><span class="lines">@@ -170,4 +166,4 @@
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;?php include(ABSPATH . 'wp-admin/admin-footer.php'); ?&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;?php include(ABSPATH . 'wp-admin/admin-footer.php'); ?&gt;
</ins></span></pre></div>
<a id="trunkwpadminnetworksiteusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/site-users.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/site-users.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/network/site-users.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -211,11 +211,7 @@
</span><span class="cx"> endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form class=&quot;search-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;user-search-input&quot;&gt;&lt;?php _e( 'Search Users' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;user-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr($usersearch); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Users' ), 'user' ); ?&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php $wp_list_table-&gt;views(); ?&gt;
</span><span class="lines">@@ -301,4 +297,4 @@
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php
</span><del>-require('../admin-footer.php');
</del><span class="cx">\ No newline at end of file
</span><ins>+require('../admin-footer.php');
</ins></span></pre></div>
<a id="trunkwpadminnetworksitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/sites.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/sites.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/network/sites.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -104,11 +104,8 @@
</span><span class="cx"> &lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form action=&quot;&quot; method=&quot;get&quot; id=&quot;ms-search&quot;&gt;
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Sites' ), 'site' ); ?&gt;
</ins><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;blogs&quot; /&gt;
</span><del>-&lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr( $s ); ?&gt;&quot; /&gt;
-&lt;?php submit_button( __( 'Search Sites' ), 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
</del><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;form-site-list&quot; action=&quot;edit.php?action=allblogs&quot; method=&quot;post&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminnetworkthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/themes.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/themes.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/network/themes.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -94,11 +94,7 @@
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?&gt; &lt;a href=&quot;theme-install.php&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x('Add New', 'theme'); ?&gt;&lt;/a&gt;&lt;?php } ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;get&quot; action=&quot;&quot;&gt;
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;theme-search-input&quot;&gt;&lt;?php _e( 'Search Themes' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;theme-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Installed Themes' ), 'button', '', false ); ?&gt;
-&lt;/p&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Installed Themes' ), 'theme' ); ?&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php $wp_list_table-&gt;views(); ?&gt;
</span><span class="lines">@@ -113,4 +109,4 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span><del>-include(ABSPATH . 'wp-admin/admin-footer.php');
</del><span class="cx">\ No newline at end of file
</span><ins>+include(ABSPATH . 'wp-admin/admin-footer.php');
</ins></span></pre></div>
<a id="trunkwpadminnetworkusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/users.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/users.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/network/users.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -79,10 +79,7 @@
</span><span class="cx">         &lt;?php $wp_list_table-&gt;views(); ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;form action=&quot;&quot; method=&quot;get&quot; class=&quot;search-form&quot;&gt;
</span><del>-                &lt;p class=&quot;search-box&quot;&gt;
-                &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr( $usersearch ); ?&gt;&quot; class=&quot;search-input&quot; id=&quot;user-search-input&quot; /&gt;
-                &lt;?php submit_button( __( 'Search Users' ), 'button', 'post-query-submit', false ); ?&gt;
-                &lt;/p&gt;
</del><ins>+                &lt;?php $wp_list_table-&gt;search_box( __( 'Search Users' ), 'user' ); ?&gt;
</ins><span class="cx">         &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;form id=&quot;form-user-list&quot; action='edit.php?action=allusers' method='post'&gt;
</span><span class="lines">@@ -90,4 +87,4 @@
</span><span class="cx">         &lt;/form&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;?php require_once( '../admin-footer.php' ); ?&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;?php require_once( '../admin-footer.php' ); ?&gt;
</ins></span></pre></div>
<a id="trunkwpadminpluginsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/plugins.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/plugins.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/plugins.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -377,16 +377,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Plugins' ), 'plugin' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;plugin-search-input&quot;&gt;&lt;?php _e( 'Search Plugins' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;plugin-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Installed Plugins' ), 'button', '', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;plugin_status&quot; value=&quot;&lt;?php echo esc_attr($status) ?&gt;&quot; /&gt;
</span><span class="cx"> &lt;input type=&quot;hidden&quot; name=&quot;paged&quot; value=&quot;&lt;?php echo esc_attr($page) ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/themes.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/themes.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/themes.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -146,7 +146,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;h3&gt;&lt;?php _e('Available Themes'); ?&gt;&lt;/h3&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php if ( !empty( $_REQUEST['s'] ) || $wp_list_table-&gt;has_items() ) : ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;form class=&quot;search-form filter-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminuploadphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/upload.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/upload.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/upload.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -206,16 +206,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Media' ), 'media' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;media-search-input&quot;&gt;&lt;?php _e( 'Search Media' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;media-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Media' ), 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;?php $wp_list_table-&gt;display(); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/users.php (17005 => 17006)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/users.php        2010-12-16 19:48:00 UTC (rev 17005)
+++ trunk/wp-admin/users.php        2010-12-16 20:45:10 UTC (rev 17006)
</span><span class="lines">@@ -357,16 +357,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( $wp_list_table-&gt;has_items() ) : ?&gt;
</del><ins>+&lt;?php $wp_list_table-&gt;search_box( __( 'Search Users' ), 'user' ); ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;user-search-input&quot;&gt;&lt;?php _e( 'Search Users' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;user-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr($usersearch); ?&gt;&quot; /&gt;
-        &lt;?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?&gt;
-&lt;/p&gt;
-
-&lt;?php endif; ?&gt;
-
</del><span class="cx"> &lt;?php $wp_list_table-&gt;display(); ?&gt;
</span><span class="cx"> &lt;/form&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>