Make WordPress Core

Changeset 24725


Ignore:
Timestamp:
07/17/2013 09:08:05 PM (11 years ago)
Author:
westi
Message:

Fix a strict standards error in the plugin search when search for an already installed plugin.

Fixes #24747 props SergeyBiryukov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r24327 r24725  
    230230                    $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug);
    231231            } else {
    232                 $key = array_shift( $key = array_keys($installed_plugin) ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers
     232                $key = array_keys( $installed_plugin );
     233                $key = array_shift( $key ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers
    233234                if ( version_compare($api->version, $installed_plugin[ $key ]['Version'], '=') ){
    234235                    $status = 'latest_installed';
Note: See TracChangeset for help on using the changeset viewer.