We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba50e9 commit 1737b47Copy full SHA for 1737b47
classes/wp-background-process.php
@@ -86,7 +86,11 @@ public function __construct( $allowed_batch_data_classes = true ) {
86
$allowed_batch_data_classes = true;
87
}
88
89
- $this->allowed_batch_data_classes = $allowed_batch_data_classes;
+ // If allowed_batch_data_classes property set in subclass,
90
+ // only apply override if not allowing any class.
91
+ if ( true === $this->allowed_batch_data_classes || true !== $allowed_batch_data_classes ) {
92
+ $this->allowed_batch_data_classes = $allowed_batch_data_classes;
93
+ }
94
95
$this->cron_hook_identifier = $this->identifier . '_cron';
96
$this->cron_interval_identifier = $this->identifier . '_cron_interval';
0 commit comments