From a57529c720bf4bed3c438edf162caea342a85e2e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Sep 2013 09:36:08 +0000 Subject: [PATCH] Avoid a PHP warning in network admin if a constant corresponding to a drop-in is not defined. fixes #25301. git-svn-id: https://develop.svn.wordpress.org/trunk@25425 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugins-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index 956840e5a1..9e648498fe 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -321,7 +321,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant $is_active = true; $description = '

' . $dropins[ $plugin_file ][0] . '

'; - } elseif ( constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true + } elseif ( defined( $dropins[ $plugin_file ][1] ) && constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true $is_active = true; $description = '

' . $dropins[ $plugin_file ][0] . '

'; } else {