WordPress.org

Make WordPress Core

Changeset 25425


Ignore:
Timestamp:
09/13/2013 09:36:08 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Avoid a PHP warning in network admin if a constant corresponding to a drop-in is not defined. fixes #25301.

File:
1 edited

Legend:

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

    r25254 r25425  
    322322                $is_active = true;
    323323                $description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
    324             } elseif ( constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true
     324            } elseif ( defined( $dropins[ $plugin_file ][1] ) && constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true
    325325                $is_active = true;
    326326                $description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
Note: See TracChangeset for help on using the changeset viewer.