Skip to content

Commit a1e8d34

Browse files
author
Hai Zheng
committed
v7.9-a41: * **Toolbox** Delayed report submission to finish 3rd part conf injection.
1 parent 67e5c16 commit a1e8d34

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/report.cls.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ class Report extends Base {
2323
* @access public
2424
*/
2525
public function handler() {
26+
// Defer until after `wp_loaded` so 3rd-party appended options (e.g. WooCommerce wc_update_interval / wc_cart_vary) are present in the regenerated report.
27+
if (!did_action('wp_loaded')) {
28+
add_action('wp_loaded', array( $this, 'handler' ), 5);
29+
return;
30+
}
31+
2632
$type = Router::verify_type();
2733

2834
switch ($type) {

0 commit comments

Comments
 (0)