Commit 9751ac77 authored by Erick Hitter's avatar Erick Hitter
Browse files

Doc why we do what we do to get the table loaded during tests

parent 86f50487
......@@ -22,6 +22,7 @@ function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/cron-control.php';
// Plugin loads after `wp_install()` is called, so we compensate
// See the `class_init()` method in Events_Store for the logic behind this
remove_filter( 'schedule_event', '__return_false' );
add_filter( 'pre_option_cron', array( \Automattic\WP\Cron_Control\Events_Store::instance(), 'get_option' ) );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment