X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/607b7e02d77e7326161e8ec15639052d2040f745..ef91a7f4f3c6468973e192335a27ec0e0faca0b5:/wp-admin/plugin-install.php diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index 637424b5..490e671d 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -64,7 +64,7 @@ wp_enqueue_script( 'updates' ); * * @since 2.7.0 */ -do_action( "install_plugins_pre_$tab" ); +do_action( "install_plugins_pre_{$tab}" ); /* * Call the pre upload action on every non-upload plugin install screen @@ -79,7 +79,7 @@ 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 Plugin Directory are compatible with the license WordPress uses.' ), 'https://wordpress.org/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 Plugin Directory are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '

' . '

' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' ' . __( 'The search results will be updated as you type.' ) . '

' ) ); @@ -95,8 +95,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Installing Plugins') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Installing Plugins') . '

' . + '

' . __('Support Forums') . '

' ); get_current_screen()->set_screen_reader_content( array( @@ -129,7 +129,7 @@ include(ABSPATH . 'wp-admin/admin-header.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 ( $tab !== 'upload' ) { +if ( 'upload' !== $tab ) { ?>
views(); echo '
'; } @@ -155,7 +152,7 @@ if ( $tab !== 'upload' ) { * * @param int $paged The current page number of the plugins list table. */ -do_action( "install_plugins_$tab", $paged ); ?> +do_action( "install_plugins_{$tab}", $paged ); ?>