From 3f5f212ffb8ebcaf4c583b442920956eb956a754 Mon Sep 17 00:00:00 2001 From: scribu Date: Fri, 10 Dec 2010 20:22:34 +0000 Subject: [PATCH] Don't show search box if there are no items available. See #15353 git-svn-id: https://develop.svn.wordpress.org/trunk@16868 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 6 ++++++ wp-admin/edit.php | 5 +++++ wp-admin/link-manager.php | 11 +++++++---- wp-admin/plugins.php | 19 +++++++++++-------- wp-admin/upload.php | 10 +++++++--- wp-admin/users.php | 9 ++++++--- 6 files changed, 42 insertions(+), 18 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 2154f98d82..6e0d1e3fa8 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -220,11 +220,17 @@ if ( isset($_REQUEST['approved']) || isset($_REQUEST['deleted']) || isset($_REQU views(); ?>
+ +has_items() ) : ?> + + + + diff --git a/wp-admin/edit.php b/wp-admin/edit.php index a5cb382dc0..883cb5da82 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -227,12 +227,17 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated' views(); ?> + +has_items() ) : ?> + + + diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 5f02cd1b5e..9a8bab928a 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -75,17 +75,20 @@ if ( isset($_REQUEST['deleted']) ) { } ?> - + + +has_items() ) : ?> + -
-
-
+ + display(); ?> +
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 5f790e3704..3d97fe78a8 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -362,19 +362,22 @@ if ( !empty($invalid) )

-
- -
- views(); ?>
+ +has_items() ) : ?> + + + + + diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 7055ab5350..216c11b13c 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -202,16 +202,20 @@ if ( !empty($message) ) { ?> views(); ?> - + + +has_items() ) : ?> + -
-
+ + display(); ?> +

diff --git a/wp-admin/users.php b/wp-admin/users.php index 3246877b5f..d368a189c7 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -353,15 +353,18 @@ if ( $usersearch ) views(); ?> - + + +has_items() ) : ?> + -
-
+ + display(); ?>