diff --git wp-admin/plugin-install.php wp-admin/plugin-install.php
index 25470d6..999f84b 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 | * Override the general interface, e.g. install or plugin information. |
| | 40 | * |
| | 41 | * @since 2.7.0 |
| | 42 | */ |
| | 43 | do_action('install_plugins_pre_' . $tab); |
| 37 | 44 | |
| 38 | 45 | get_current_screen()->add_help_tab( array( |
| 39 | 46 | 'id' => 'overview', |
| … |
… |
get_current_screen()->set_help_sidebar(
|
| 57 | 64 | '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
| 58 | 65 | ); |
| 59 | 66 | |
| | 67 | /** |
| | 68 | * WordPress Administration Template Header. |
| | 69 | */ |
| 60 | 70 | include(ABSPATH . 'wp-admin/admin-header.php'); |
| 61 | 71 | ?> |
| 62 | 72 | <div class="wrap"> |
| … |
… |
include(ABSPATH . 'wp-admin/admin-header.php');
|
| 66 | 76 | <?php $wp_list_table->views(); ?> |
| 67 | 77 | |
| 68 | 78 | <br class="clear" /> |
| | 79 | <?php |
| | 80 | /** |
| | 81 | * Fires after list of views — displays the view specified by $tab. |
| | 82 | * |
| | 83 | * @since 2.7.0 |
| | 84 | * |
| | 85 | * @param int $paged Current page number. |
| | 86 | */ |
| | 87 | ?> |
| 69 | 88 | <?php do_action('install_plugins_' . $tab, $paged); ?> |
| 70 | 89 | </div> |
| 71 | 90 | <?php |
| | 91 | /** |
| | 92 | * WordPress Administration Template Footer. |
| | 93 | */ |
| 72 | 94 | include(ABSPATH . 'wp-admin/admin-footer.php'); |