[wp-trac] [WordPress Trac] #33330: Undefined property: stdClass::$slug

WordPress Trac noreply at wordpress.org
Mon Aug 22 22:10:28 UTC 2016


#33330: Undefined property: stdClass::$slug
-----------------------------------------+-----------------------------
 Reporter:  mattfiocca                   |       Owner:
     Type:  defect (bug)                 |      Status:  reopened
 Priority:  normal                       |   Milestone:  Future Release
Component:  Plugins                      |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+-----------------------------
Changes (by cristiano.zanca):

 * keywords:  has-patch => has-patch reporter-feedback
 * version:  4.0 =>


Comment:

 Hi all,

 {{{
 Notice: Undefined property: stdClass::$slug in
 /var/www/wordpress.local/www/wp-admin/includes/class-wp-plugin-install-
 list-table.php on line 52
 }}}
 this msg appears in my local installation WP development version
 (4.7-alpha-38298) debian PHP 5.6.24-0 MySQL 5.5.5 Nginx with all plugins
 disabled.

 To solve the problem I've run this command


 {{{
 wp transient delete-all
 }}}

 and the message disappear

 the code involved is

 {{{#!php
 <?php
                 $plugin_info = get_site_transient( 'update_plugins' );
                 if ( isset( $plugin_info->no_update ) ) {
                         foreach ( $plugin_info->no_update as $plugin ) {
                                 $slugs[] = $plugin->slug;
                         }
                 }

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33330#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list