PHP Notice: Undefined index: plugin_status
-
With debug enabled, I was seeing these notices:
[22-Dec-2014 06:07:24 UTC] PHP Notice: Undefined index: plugin_status in /fullpath/wp-content/plugins/multisite-enhancements/inc/autoload/class-add-plugin-list.php on line 57
I’ve modified this line from:
if ( ! in_array( esc_attr( $_GET[ ‘plugin_status’ ] ), self::$excluded_plugin_status ) ) {
to:
if ( ! isset( $_GET[ ‘plugin_status ‘ ] ) || ! in_array( esc_attr( $_GET[ ‘plugin_status’ ] ), self::$excluded_plugin_status ) ) {
and I believe the issue is now resolved 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Notice: Undefined index: plugin_status’ is closed to new replies.