+<?php
+/*
+ * Output the upload plugin form on every non-upload plugin install screen, so it can be
+ * displayed via JavaScript rather then opening up the devoted upload plugin page.
+ */
+if ( 'upload' !== $tab ) {
+ ?>
+ <div class="upload-plugin-wrap">
+ <?php
+ /** This action is documented in wp-admin/plugin-install.php */
+ do_action( 'install_plugins_upload' );
+ ?>
+ </div>
+ <?php
+ $wp_list_table->views();
+ echo '<br class="clear" />';
+}
+
+/**
+ * Fires after the plugins list table in each tab of the Install Plugins screen.
+ *
+ * The dynamic portion of the action hook, `$tab`, allows for targeting
+ * individual tabs, for instance 'install_plugins_plugin-information'.
+ *
+ * @since 2.7.0
+ *
+ * @param int $paged The current page number of the plugins list table.
+ */
+do_action( "install_plugins_{$tab}", $paged ); ?>