[wp-trac] [WordPress Trac] #61546: Plugin Dependencies: Remove unwanted `<p></p>` tags
WordPress Trac
noreply at wordpress.org
Tue Jul 2 11:51:10 UTC 2024
#61546: Plugin Dependencies: Remove unwanted `<p></p>` tags
------------------------------+-----------------------------
Reporter: mukesh27 | Owner: costdev
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Plugins | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: administration
------------------------------+-----------------------------
Changes (by costdev):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"58616" 58616]:
{{{
#!CommitTicketReference repository="" revision="58616"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61546#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list