Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#31694 closed defect (bug) (fixed)

Notice warning in class-wp-plugins-list-table.php since revision 31831

Reported by: imath Owned by: jorbin
Priority: normal Milestone: 4.2
Component: Plugins Version: 4.2
Severity: normal Keywords:
Cc: Focuses: administration

Description

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 :)

Attachments (1)

31694.patch (793 bytes ) - added by imath 11 years ago.

Download all attachments as: .zip

Change History (7)

@imath
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Component AdministrationPlugins

This ticket was mentioned in Slack in #core by afercia. View the logs.


11 years ago

#3 @jorbin
11 years ago

  • Milestone Awaiting Review4.2

#4 @jorbin
11 years ago

  • Owner set to jorbin
  • Status newassigned

#5 @jorbin
11 years ago

  • Resolutionfixed
  • Status assignedclosed

In 31834:

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

Note: See TracTickets for help on using tickets.