WordPress.org

Make WordPress Core

Changeset 31834


Ignore:
Timestamp:
03/19/2015 05:47:30 PM (7 years ago)
Author:
jorbin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r31831 r31834  
    516516            $class .= ' update';
    517517
     518        $plugin_slug = ( isset( $plugin_data['slug'] ) ) ? $plugin_data['slug'] : '';
    518519        printf( "<tr id='%s' class='%s' data-slug='%s'>",
    519520            $id,
    520521            $class,
    521             $plugin_data['slug']
     522            $plugin_slug
    522523        );
    523524
Note: See TracChangeset for help on using the changeset viewer.