Make WordPress Core

Changeset 58616


Ignore:
Timestamp:
07/02/2024 11:50:53 AM (2 years ago)
Author:
costdev
Message:

Plugins: Remove extra paragraph from plugin row dependency notice.

In WP_Plugins_List_Table::add_dependencies_to_dependent_plugin_row(), a sprintf() call previously wrapped the %2$s placeholder in paragraph tags.

[57769] changed the placeholder's value to use wp_get_admin_notice(), which returns a paragraph-wrapped notice by default. As a result, the previous paragraph tags produced an extra, empty paragraph.

This removes the paragraph tags around the %2$s placeholder.

Follow-up to [57545], [57714], [57769].

Props mukesh27.
Fixes #61546.

File:
1 edited

Legend:

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

    r58146 r58616  
    15951595
    15961596                printf(
    1597                         '<div class="requires"><p>%1$s</p><p>%2$s</p></div>',
     1597                        '<div class="requires"><p>%1$s</p>%2$s</div>',
    15981598                        $requires,
    15991599                        $notice
Note: See TracChangeset for help on using the changeset viewer.