[wp-trac] [WordPress Trac] #31694: Notice warning in class-wp-plugins-list-table.php since revision 31831

WordPress Trac noreply at wordpress.org
Thu Mar 19 14:25:44 UTC 2015


#31694: Notice warning in class-wp-plugins-list-table.php since revision 31831
----------------------------+-----------------------------
 Reporter:  imath           |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hi,

 Just noticed this warning today :
 `Notice: Undefined index: slug in /pathto/develop.git.wordpress.org/src
 /wp-admin/includes/class-wp-plugins-list-table.php on line 521`

 I'm not sure if there is a new tag to add in the plugin's header. The
 problem occurs with one of my plugin that is not hosted on WordPress.org,
 so my guess is that the slug is the one of the plugin's WordPress.org
 repo.

 I'd suggest to eventually do a check and use a generic fallback or a null
 value to avoid the notice. See attached patch.

 Have a nice day :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31694>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list