From 10875b1e4297a0d2265d64316255ed67f9a176a6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Mar 2022 15:56:37 +0000 Subject: [PATCH] Plugins: Move the introduction text from `install_dashboard()` to `display_plugins_table()`. This brings some consistency to how the introduction is displayed for the Beta Testing, Featured, and Recommended tabs of the Add Plugins screen. This commit also reorders the `switch` cases for the text in the same order as they are displayed. Follow-up to [9141], [30889], [36297]. Props sabbir1991, kapilpaul. Fixes #55389. git-svn-id: https://develop.svn.wordpress.org/trunk@52936 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/plugin-install.php | 36 +++++++++++------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index f2f02e0218..de21b7e96d 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -266,18 +266,8 @@ function install_popular_tags( $args = array() ) { * @since 2.7.0 */ function install_dashboard() { + display_plugins_table(); ?> -

- WordPress Plugin Directory or upload a plugin in .zip format by clicking the button at the top of this page.' ), - __( 'https://wordpress.org/plugins/' ) - ); - ?> -

- -