diff --git wp-admin/includes/class-wp-plugin-install-list-table.php wp-admin/includes/class-wp-plugin-install-list-table.php
index d78f4e7..d8912ad 100644
|
|
|
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 37 | 37 | |
| 38 | 38 | $nonmenu_tabs = array( 'plugin-information' ); //Valid actions to perform which do not have a Menu item. |
| 39 | 39 | |
| | 40 | /** |
| | 41 | * Filter the tabs that are shown on the page. |
| | 42 | * |
| | 43 | * @since 2.7.0 |
| | 44 | * |
| | 45 | * @param array $tabs The tabs which are shown on the page. |
| | 46 | */ |
| 40 | 47 | $tabs = apply_filters( 'install_plugins_tabs', $tabs ); |
| | 48 | |
| | 49 | /** |
| | 50 | * Filter the $nonmenu_tabs. |
| | 51 | * |
| | 52 | * @since 2.7.0 |
| | 53 | * |
| | 54 | * @param array $nonmenu_tabs Valid actions to perform which do not have a Menu item. |
| | 55 | */ |
| 41 | 56 | $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); |
| 42 | 57 | |
| 43 | 58 | // If a non-valid menu tab has been selected, And it's not a non-menu action. |
| … |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 88 | 103 | break; |
| 89 | 104 | } |
| 90 | 105 | |
| | 106 | /** |
| | 107 | * Filter the arguments for the Plugin API request for the $tab. |
| | 108 | * |
| | 109 | * @since 3.7.0 |
| | 110 | * |
| | 111 | * @param array|bool $args Plugin API arguments. |
| | 112 | */ |
| 91 | 113 | $args = apply_filters( 'install_plugins_table_api_args_' . $tab, $args ); |
| 92 | 114 | |
| 93 | 115 | if ( !$args ) |
| … |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 127 | 149 | if ( 'top' == $which ) { ?> |
| 128 | 150 | <div class="tablenav top"> |
| 129 | 151 | <div class="alignleft actions"> |
| 130 | | <?php do_action( 'install_plugins_table_header' ); ?> |
| | 152 | <?php |
| | 153 | /** |
| | 154 | * Fires before table header pagination is displayed. |
| | 155 | * |
| | 156 | * @since 2.7.0 |
| | 157 | */ |
| | 158 | do_action( 'install_plugins_table_header' ); ?> |
| 131 | 159 | </div> |
| 132 | 160 | <?php $this->pagination( $which ); ?> |
| 133 | 161 | <br class="clear" /> |
| … |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 221 | 249 | } |
| 222 | 250 | } |
| 223 | 251 | |
| | 252 | /** |
| | 253 | * Filter the install action links for the plugin. |
| | 254 | * |
| | 255 | * @since 2.7.0 |
| | 256 | * |
| | 257 | * @param array $action_links List of action links. |
| | 258 | * @param array $plugin The plugin currently being listed. |
| | 259 | */ |
| 224 | 260 | $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); |
| 225 | 261 | ?> |
| 226 | 262 | <tr> |