Make WordPress Core

Changeset 25447


Ignore:
Timestamp:
09/15/2013 01:25:56 AM (11 years ago)
Author:
dd32
Message:

WordPress Core Automatic Updates: Remove an accidental closure which isn't supported in PHP 5.2. See #22704

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r25427 r25447  
    13711371    static function upgrade( $type, $item ) {
    13721372
    1373         self::$skin = new Automatic_Upgrader_Skin();
     1373        if ( ! self::$skin )
     1374            self::$skin = new Automatic_Upgrader_Skin();
    13741375
    13751376        switch ( $type ) {
    13761377            case 'core':
    13771378                // The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter
    1378                 add_filter( 'update_feedback', function( $message ) {
    1379                     WP_Background_Upgrader::$skin->feedback( $message );
    1380                     return $message;
    1381                 } );
     1379                add_filter( 'update_feedback', array( self::$skin, 'feedback' ) );
    13821380                $upgrader = new Core_Upgrader( self::$skin );
    13831381                $context  = ABSPATH;
Note: See TracChangeset for help on using the changeset viewer.