Changeset 25468
- Timestamp:
- 09/17/2013 04:07:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r25467 r25468 1395 1395 return false; 1396 1396 1397 /*wp_mail(1398 get_site_option( 'admin_email' ),1399 __METHOD__,1400 "Starting an upgrade for:\n\n" . var_export( compact( 'type', 'item' ), true ) . "\n\n" . wp_debug_backtrace_summary()1401 );*/1402 1403 1397 // Boom, This sites about to get a whole new splash of paint! 1404 1398 $upgrade_result = $upgrader->upgrade( $item, array( … … 1428 1422 } 1429 1423 1430 //var_dump( compact( 'type', 'item', 'upgrader', 'upgrade_result' ) );1431 1432 1424 wp_mail( 1433 1425 get_site_option( 'admin_email' ), … … 1453 1445 if ( get_site_option( $lock_name ) < ( time() - HOUR_IN_SECONDS ) ) 1454 1446 delete_site_option( $lock_name ); 1455 else { // The process is already locked 1456 echo "There's a lock in place"; 1447 else // The process is already locked 1457 1448 return; 1458 }1459 1449 } 1460 1450 // Lock upgrades for us for half an hour
Note: See TracChangeset
for help on using the changeset viewer.