mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 23:04:25 +00:00
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:
@@ -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; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user