diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index a1b4c9213b..f8bbb5fb65 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -255,7 +255,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { if ( $upgrade_plugins ) { $js_plugins['upgrade'] = array_values( $upgrade_plugins ); - } + } wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'plugins' => $js_plugins, @@ -267,10 +267,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { /** */ public function no_items() { - if ( isset( $this->error ) ) { - echo '
' . $this->error->get_error_message() . '
error->get_error_message(); ?>
+ +