Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#55389 closed enhancement (fixed)

Move the introduction text from install_dashboard() to display_plugins_table()

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.0 Priority: normal
Severity: trivial Version:
Component: Plugins Keywords: good-first-bug has-patch
Focuses: administration Cc:

Description

install_dashboard() starts with this text for the Featured tab of Add Plugins screen:

Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the WordPress Plugin Directory or upload a plugin in .zip format by clicking the button at the top of this page.

Some similar sentences are also found in the display_plugins_table() function:

  • For the Recommended tab: "These suggestions are based on the plugins you and other users have installed".
  • For the Beta Testing tab: "You are using a development version of WordPress. These feature plugins are also under development".

To have these introductions in a single place, the first one should be moved to display_plugins_table() as well for consistency.

Some history here: [9141], [30889], [36297].

Attachments (1)

55389.diff (1.3 KB) - added by sabbir1991 2 years ago.
Created a patch

Download all attachments as: .zip

Change History (5)

@sabbir1991
2 years ago

Created a patch

#1 @sabbir1991
2 years ago

  • Keywords has-patch added; needs-patch removed

#2 @kapilpaul
2 years ago

@sabbir1991

Welcome to trac. Thanks for the patch.

@SergeyBiryukov I have tested this patch and it's working as expected.

#3 @SergeyBiryukov
2 years ago

Hi there, welcome back to WordPress Trac! Thanks for the patch, it looks good to me too.

#4 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 52936:

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.

Note: See TracTickets for help on using tickets.