Make WordPress Core

Changeset 33258


Ignore:
Timestamp:
07/14/2015 08:03:52 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.
Merges [33257] to the 4.2 branch.
Fixes #32198 for 4.2

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

  • branches/4.2/src/wp-admin/includes/ajax-actions.php

    r32258 r33258  
    29072907    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    29082908
    2909     $current = get_site_transient( 'update_plugins' );
    2910     if ( empty( $current ) ) {
    2911         wp_update_plugins();
    2912     }
     2909    wp_update_plugins();
    29132910
    29142911    $upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() );
Note: See TracChangeset for help on using the changeset viewer.