From 0e95737d10a11c63693b018c91aecbff767bb9cc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Mar 2022 15:58:02 +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. Built from https://develop.svn.wordpress.org/trunk@52936 git-svn-id: http://core.svn.wordpress.org/trunk@52525 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 36 +++++++++++++--------------- wp-includes/version.php | 2 +- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index f2f02e0218..de21b7e96d 100644 --- a/wp-admin/includes/plugin-install.php +++ b/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/' ) - ); - ?> -

- -