WordPress Core Automatic Updates: Remove some debug. See #22704

Built from https://develop.svn.wordpress.org/trunk@25468


git-svn-id: http://core.svn.wordpress.org/trunk@25389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-09-17 04:08:09 +00:00
parent cc84220ab5
commit 59d5e858f7
1 changed files with 1 additions and 11 deletions

View File

@ -1394,12 +1394,6 @@ class WP_Automatic_Upgrader {
if ( ! self::should_auto_update( $type, $item, $context ) || ! self::can_auto_update( $context ) )
return false;
/*wp_mail(
get_site_option( 'admin_email' ),
__METHOD__,
"Starting an upgrade for:\n\n" . var_export( compact( 'type', 'item' ), true ) . "\n\n" . wp_debug_backtrace_summary()
);*/
// Boom, This sites about to get a whole new splash of paint!
$upgrade_result = $upgrader->upgrade( $item, array(
'clear_update_cache' => false,
@ -1427,8 +1421,6 @@ class WP_Automatic_Upgrader {
break;
}
//var_dump( compact( 'type', 'item', 'upgrader', 'upgrade_result' ) );
wp_mail(
get_site_option( 'admin_email' ),
__METHOD__,
@ -1452,11 +1444,9 @@ class WP_Automatic_Upgrader {
// Test to see if it was set more than an hour ago, if so, cleanup.
if ( get_site_option( $lock_name ) < ( time() - HOUR_IN_SECONDS ) )
delete_site_option( $lock_name );
else { // The process is already locked
echo "There's a lock in place";
else // The process is already locked
return;
}
}
// Lock upgrades for us for half an hour
if ( ! add_site_option( $lock_name, microtime( true ), HOUR_IN_SECONDS / 2 ) )
return;