Skip to content

Commit 2566fd5

Browse files
committed
Plugins: Move the Add Plugins screen description above the filter menu.
This changeset moves the Add Plugins screen general description above the filter menu. It also rephrases a bit the wording of this description. Props Presskopp, audrasjb, dhruvang21, shailu25. Fixes #63723. git-svn-id: https://develop.svn.wordpress.org/trunk@60528 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d8ec789 commit 2566fd5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/wp-admin/includes/class-wp-plugin-install-list-table.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,12 @@ public function views() {
339339
$views = apply_filters( "views_{$this->screen->id}", $views );
340340

341341
$this->screen->render_screen_reader_content( 'heading_views' );
342+
343+
printf(
344+
/* translators: %s: https://wordpress.org/plugins/ */
345+
'<p>' . __( 'Plugins extend and expand the functionality of WordPress. You may install plugins from the <a href="%s">WordPress Plugin Directory</a> right on this page, or upload a plugin in .zip format by clicking the button above.' ) . '</p>',
346+
__( 'https://wordpress.org/plugins/' )
347+
);
342348
?>
343349
<div class="wp-filter">
344350
<ul class="filter-links">

src/wp-admin/includes/plugin-install.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,6 @@ function display_plugins_table() {
399399
);
400400
break;
401401
case 'install_plugins_featured':
402-
printf(
403-
/* translators: %s: https://wordpress.org/plugins/ */
404-
'<p>' . __( 'Plugins extend and expand the functionality of WordPress. You may install plugins in the <a href="%s">WordPress Plugin Directory</a> right from here, or upload a plugin in .zip format by clicking the button at the top of this page.' ) . '</p>',
405-
__( 'https://wordpress.org/plugins/' )
406-
);
407402
break;
408403
case 'install_plugins_recommended':
409404
echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
@@ -414,6 +409,9 @@ function display_plugins_table() {
414409
}
415410
break;
416411
}
412+
if ( isset( $_GET['tab'] ) && 'featured' === $_GET['tab'] ) {
413+
echo '<br />';
414+
}
417415
?>
418416
<form id="plugin-filter" method="post">
419417
<?php $wp_list_table->display(); ?>

0 commit comments

Comments
 (0)