Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#55389 closed enhancement (fixed)

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

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

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 5 years ago.
Created a patch

Download all attachments as: .zip

Change History (5)

@sabbir1991
5 years ago

Created a patch

#1 @sabbir1991
5 years ago

  • Keywords has-patch added; needs-patch removed

#2 @kapilpaul
5 years ago

@sabbir1991

Welcome to trac. Thanks for the patch.

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

#3 @SergeyBiryukov
5 years ago

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

#4 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.