Make WordPress Core

Changeset 60528


Ignore:
Timestamp:
07/31/2025 10:47:24 PM (12 months ago)
Author:
audrasjb
Message:

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.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r60216 r60528  
    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">
  • trunk/src/wp-admin/includes/plugin-install.php

    r58873 r60528  
    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':
     
    414409                        }
    415410                        break;
     411        }
     412        if ( isset( $_GET['tab'] ) && 'featured' === $_GET['tab'] ) {
     413                echo '<br />';
    416414        }
    417415        ?>
Note: See TracChangeset for help on using the changeset viewer.