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:
Claudiu Lodromanean 2018-09-19 08:04:21 -07:00 committed by GitHub
commit 9df1ded20f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.