Skip to content

Commit 9cccbc5

Browse files
committed
Plugins: Fix broken sprintf() call in plugins list table.
In [56599], a `sprintf()` call was modified which resulted in an insufficient number of arguments. This caused a Fatal Error when an incompatible plugin notice was displayed. This fixes the `sprintf()` call. Follow-up to [56599]. Props petitphp, TobiasBg, sabernhardt, mukesh27. Fixes #59590. See #57791. git-svn-id: https://develop.svn.wordpress.org/trunk@56824 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f19b20e commit 9cccbc5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-admin/includes/class-wp-plugins-list-table.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,8 +1280,7 @@ public function single_row( $item ) {
12801280

12811281
if ( ! $compatible_php || ! $compatible_wp ) {
12821282
printf(
1283-
'<tr class="plugin-update-tr">' .
1284-
'<td colspan="%s" class="plugin-update colspanchange">' .
1283+
'<tr class="plugin-update-tr"><td colspan="%s" class="plugin-update colspanchange">',
12851284
esc_attr( $this->get_column_count() )
12861285
);
12871286

0 commit comments

Comments
 (0)