Make WordPress Core

Changeset 48820


Ignore:
Timestamp:
08/18/2020 08:36:42 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Avoid a PHP notice if the update-supported key in plugin data is not set.

Props sanzeeb3.
Fixes #51052.

File:
1 edited

Legend:

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

    r48750 r48820  
    10951095                                        if ( isset( $plugin_data['auto-update-forced'] ) ) {
    10961096                                                if ( $plugin_data['auto-update-forced'] ) {
    1097                                                         // Forced on
     1097                                                        // Forced on.
    10981098                                                        $text = __( 'Auto-updates enabled' );
    10991099                                                } else {
     
    11021102                                                $action     = 'unavailable';
    11031103                                                $time_class = ' hidden';
    1104                                         } elseif ( ! $plugin_data['update-supported'] ) {
     1104                                        } elseif ( empty( $plugin_data['update-supported'] ) ) {
    11051105                                                $text       = '';
    11061106                                                $action     = 'unavailable';
Note: See TracChangeset for help on using the changeset viewer.