Plugins: After [41608], make the markup in WP_Plugin_Install_List_Table::no_items()
a bit more readable.
See #37430. git-svn-id: https://develop.svn.wordpress.org/trunk@41915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dca34e10d5
commit
93a3fa4506
@ -267,10 +267,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
/**
|
||||
*/
|
||||
public function no_items() {
|
||||
if ( isset( $this->error ) ) {
|
||||
echo '<div class="inline error"><p>' . $this->error->get_error_message() . '</p><p class="hide-if-no-js"><button class="button try-again">' . __( 'Try Again' ) . '</button></p></div>';
|
||||
} else {
|
||||
echo '<div class="no-plugin-results">' . __( 'No plugins found. Try a different search.' ) . '</div>';
|
||||
if ( isset( $this->error ) ) { ?>
|
||||
<div class="inline error"><p><?php echo $this->error->get_error_message(); ?></p>
|
||||
<p class="hide-if-no-js"><button class="button try-again"><?php _e( 'Try Again' ); ?></button></p>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user