From 757ee0684cd887261918927221afb45368392b5a Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Thu, 19 Mar 2015 17:47:30 +0000 Subject: [PATCH] Fix notice that exists for plugins with no slug Not all plugins have a slug, especially plugins not from the WordPress.org repository. Props imath for initial patch. Fixes #31694 git-svn-id: https://develop.svn.wordpress.org/trunk@31834 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-plugins-list-table.php | 3 ++- 1 file changed, 2 insertions(+), 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 5d0c78fd8e..120ce5c48b 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -515,10 +515,11 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( ! empty( $totals['upgrade'] ) && ! empty( $plugin_data['update'] ) ) $class .= ' update'; + $plugin_slug = ( isset( $plugin_data['slug'] ) ) ? $plugin_data['slug'] : ''; printf( "", $id, $class, - $plugin_data['slug'] + $plugin_slug ); list( $columns, $hidden ) = $this->get_column_info();