X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..78ff9d91a14da1f53bd3f1ffcab1264d92359b72:/wp-admin/plugin-install.php diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index cd64d63c..8d0dde32 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -9,8 +9,10 @@ if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) define( 'IFRAME_REQUEST', true ); -/** WordPress Administration Bootstrap */ -require_once('./admin.php'); +/** + * WordPress Administration Bootstrap. + */ +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can('install_plugins') ) wp_die(__('You do not have sufficient permissions to install plugins on this site.')); @@ -33,13 +35,21 @@ if ( 'plugin-information' != $tab ) $body_id = $tab; -do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information. +/** + * Fires before each tab on the Install Plugins screen is loaded. + * + * The dynamic portion of the action hook, $tab, allows for targeting + * individual tabs, for instance 'install_plugins_pre_plugin-information'. + * + * @since 2.7.0 + */ +do_action( "install_plugins_pre_$tab" ); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'), 'content' => - '

' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official WordPress.org Plugin Directory are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '

' + '

' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official WordPress.org Plugin Directory are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/plugins/') . '

' ) ); get_current_screen()->add_help_tab( array( 'id' => 'adding-plugins', @@ -57,16 +67,33 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); +/** + * WordPress Administration Template Header. + */ include(ABSPATH . 'wp-admin/admin-header.php'); ?>
-

views(); ?>
- + +