Preserve changes in includes/class-wc-background-updater.php
This commit is contained in:
parent
ece9f02776
commit
55fcd4c210
|
@ -99,7 +99,6 @@ class WC_Background_Updater extends WC_Background_Process {
|
|||
wc_maybe_define_constant( 'WC_UPDATING', true );
|
||||
|
||||
$logger = wc_get_logger();
|
||||
$result = null;
|
||||
|
||||
include_once dirname( __FILE__ ) . '/wc-update-functions.php';
|
||||
|
||||
|
@ -114,6 +113,8 @@ class WC_Background_Updater extends WC_Background_Process {
|
|||
} else {
|
||||
$logger->info( sprintf( 'Finished running %s callback', $callback ), array( 'source' => 'wc_db_updates' ) );
|
||||
}
|
||||
} else {
|
||||
$logger->notice( sprintf( 'Could not find %s callback', $callback ), array( 'source' => 'wc_db_updates' ) );
|
||||
}
|
||||
|
||||
return $result ? $callback : false;
|
||||
|
@ -137,7 +138,7 @@ class WC_Background_Updater extends WC_Background_Process {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_batch_limit_exceeded() {
|
||||
return $this->batch_limit_exceeded();
|
||||
public function is_memory_exceeded() {
|
||||
return $this->memory_exceeded();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue