Skip to content

Commit 00bcc5b

Browse files
Load reports on init priority 9, also see #717
1 parent 24c3822 commit 00bcc5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/reports/class-wp-stream-reports.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ private function __construct() {
5454
return;
5555
}
5656

57-
// Must be fired on plugins_loaded for date range filters to work properly
58-
add_action( 'plugins_loaded', array( $this, 'load' ) );
57+
// Must be fired on priority 9 or earlier for date range filters to work properly
58+
add_action( 'init', array( $this, 'load' ), 9 );
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)