diff --git wp-admin/plugin-install.php wp-admin/plugin-install.php
index 25470d6..7e907be 100644
|
|
|
9 | 9 | if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) |
10 | 10 | define( 'IFRAME_REQUEST', true ); |
11 | 11 | |
12 | | /** WordPress Administration Bootstrap */ |
| 12 | /** |
| 13 | * WordPress Administration Bootstrap. |
| 14 | */ |
13 | 15 | require_once('./admin.php'); |
14 | 16 | |
15 | 17 | if ( ! current_user_can('install_plugins') ) |
… |
… |
if ( 'plugin-information' != $tab ) |
33 | 35 | |
34 | 36 | $body_id = $tab; |
35 | 37 | |
36 | | do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information. |
| 38 | /** |
| 39 | * Fires before each $tab is loaded. |
| 40 | * |
| 41 | * Used to override the general interface, e.g. install or plugin information. |
| 42 | * |
| 43 | * @since 2.7.0 |
| 44 | */ |
| 45 | do_action( 'install_plugins_pre_' . $tab ); |
37 | 46 | |
38 | 47 | get_current_screen()->add_help_tab( array( |
39 | 48 | 'id' => 'overview', |
… |
… |
get_current_screen()->set_help_sidebar( |
57 | 66 | '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
58 | 67 | ); |
59 | 68 | |
| 69 | /** |
| 70 | * WordPress Administration Template Header. |
| 71 | */ |
60 | 72 | include(ABSPATH . 'wp-admin/admin-header.php'); |
61 | 73 | ?> |
62 | 74 | <div class="wrap"> |
… |
… |
include(ABSPATH . 'wp-admin/admin-header.php'); |
66 | 78 | <?php $wp_list_table->views(); ?> |
67 | 79 | |
68 | 80 | <br class="clear" /> |
69 | | <?php do_action('install_plugins_' . $tab, $paged); ?> |
| 81 | <?php |
| 82 | /** |
| 83 | * Fires after list of views — displays the view specified by $tab. |
| 84 | * |
| 85 | * @since 2.7.0 |
| 86 | * |
| 87 | * @param int $paged Current page number. |
| 88 | */ |
| 89 | ?> |
| 90 | <?php do_action( 'install_plugins_' . $tab, $paged ); ?> |
70 | 91 | </div> |
71 | 92 | <?php |
| 93 | /** |
| 94 | * WordPress Administration Template Footer. |
| 95 | */ |
72 | 96 | include(ABSPATH . 'wp-admin/admin-footer.php'); |