Make WordPress Core

Changeset 31345


Ignore:
Timestamp:
02/06/2015 12:33:49 AM (7 years ago)
Author:
pento
Message:

Shiny Updates: Fix a PHP warning when installing new plugins.

Props lgladdy for the initial patch.

See #29820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r31335 r31345  
    28692869    }
    28702870
    2871     $plugin_status = install_plugin_install_status( array( 'slug' => sanitize_key( $_POST['slug'] ) ) );
     2871    $plugin_status = install_plugin_install_status( $api );
    28722872    activate_plugin( $plugin_status['file'] );
    28732873
Note: See TracChangeset for help on using the changeset viewer.