Make WordPress Core


Ignore:
Timestamp:
07/14/2015 08:00:31 AM (9 years ago)
Author:
dd32
Message:

Updates: When performing an ajax plugin update, rely upon wp_update_plugins() to check the contents of the transient and return early if no request needs to be made.
This works around a bug where custom update handlers are injecting an update into an empty transient, malforming the transient and causing update failures.
Fixes #32198 for trunk

File:
1 edited

Legend:

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

    r33176 r33257  
    29702970    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    29712971
    2972     $current = get_site_transient( 'update_plugins' );
    2973     if ( empty( $current ) ) {
    2974         wp_update_plugins();
    2975     }
     2972    wp_update_plugins();
    29762973
    29772974    $skin = new Automatic_Upgrader_Skin();
Note: See TracChangeset for help on using the changeset viewer.