Consistently hide bulk actions, filters, and subpage links on admin panels when there are no items to show. Fixes #12086

git-svn-id: https://develop.svn.wordpress.org/trunk@13100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-13 08:49:27 +00:00
parent a5ad001b73
commit 8be6c296b1
5 changed files with 50 additions and 31 deletions

View File

@@ -633,6 +633,8 @@ unset( $status_links );
?>
</ul>
<?php if ( ! empty( $plugins ) ) { ?>
<div class="tablenav">
<?php
if ( $page_links )
@@ -656,9 +658,13 @@ if ( $page_links )
print_plugin_actions($status, "action2");
?>
</div>
<?php } elseif ( ! empty( $all_plugins ) ) { ?>
<p><?php __( 'No plugins found.' ); ?></p>
<?php } ?>
</form>
<?php if ( empty($all_plugins) ) : ?>
<br class="clear" />
<p><?php _e('You do not appear to have any plugins available at this time.') ?></p>
<?php endif; ?>