mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
cc84220ab5
commit
59d5e858f7
@ -1394,12 +1394,6 @@ class WP_Automatic_Upgrader {
|
|||||||
if ( ! self::should_auto_update( $type, $item, $context ) || ! self::can_auto_update( $context ) )
|
if ( ! self::should_auto_update( $type, $item, $context ) || ! self::can_auto_update( $context ) )
|
||||||
return false;
|
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!
|
// Boom, This sites about to get a whole new splash of paint!
|
||||||
$upgrade_result = $upgrader->upgrade( $item, array(
|
$upgrade_result = $upgrader->upgrade( $item, array(
|
||||||
'clear_update_cache' => false,
|
'clear_update_cache' => false,
|
||||||
@ -1427,8 +1421,6 @@ class WP_Automatic_Upgrader {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//var_dump( compact( 'type', 'item', 'upgrader', 'upgrade_result' ) );
|
|
||||||
|
|
||||||
wp_mail(
|
wp_mail(
|
||||||
get_site_option( 'admin_email' ),
|
get_site_option( 'admin_email' ),
|
||||||
__METHOD__,
|
__METHOD__,
|
||||||
@ -1452,10 +1444,8 @@ class WP_Automatic_Upgrader {
|
|||||||
// Test to see if it was set more than an hour ago, if so, cleanup.
|
// 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 ) )
|
if ( get_site_option( $lock_name ) < ( time() - HOUR_IN_SECONDS ) )
|
||||||
delete_site_option( $lock_name );
|
delete_site_option( $lock_name );
|
||||||
else { // The process is already locked
|
else // The process is already locked
|
||||||
echo "There's a lock in place";
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Lock upgrades for us for half an hour
|
// Lock upgrades for us for half an hour
|
||||||
if ( ! add_site_option( $lock_name, microtime( true ), HOUR_IN_SECONDS / 2 ) )
|
if ( ! add_site_option( $lock_name, microtime( true ), HOUR_IN_SECONDS / 2 ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user