Merge pull request #21353 from ediamin/fix/cron_interval_property_in_WP_Background_Process
Fix cron_interval property support in WP_Background_Process
This commit is contained in:
commit
9df1ded20f
|
@ -414,7 +414,7 @@ abstract class WP_Background_Process extends WP_Async_Request {
|
|||
$interval = apply_filters( $this->identifier . '_cron_interval', 5 );
|
||||
|
||||
if ( property_exists( $this, 'cron_interval' ) ) {
|
||||
$interval = apply_filters( $this->identifier . '_cron_interval', $this->cron_interval_identifier );
|
||||
$interval = apply_filters( $this->identifier . '_cron_interval', $this->cron_interval );
|
||||
}
|
||||
|
||||
// Adds every 5 minutes to the existing schedules.
|
||||
|
|
Loading…
Reference in New Issue