Make WordPress Core


Ignore:
Timestamp:
10/11/2023 04:32:00 AM (8 months ago)
Author:
costdev
Message:

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.

File:
1 edited

Legend:

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

    r56665 r56824  
    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            );
Note: See TracChangeset for help on using the changeset viewer.