Changeset 25447
- Timestamp:
- 09/15/2013 01:25:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r25427 r25447 1371 1371 static function upgrade( $type, $item ) { 1372 1372 1373 self::$skin = new Automatic_Upgrader_Skin(); 1373 if ( ! self::$skin ) 1374 self::$skin = new Automatic_Upgrader_Skin(); 1374 1375 1375 1376 switch ( $type ) { 1376 1377 case 'core': 1377 1378 // 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' ) ); 1382 1380 $upgrader = new Core_Upgrader( self::$skin ); 1383 1381 $context = ABSPATH;
Note: See TracChangeset
for help on using the changeset viewer.