Skip to content

Commit a380575

Browse files
committed
Boostrap late to allow themes & plugins to notify async.
1 parent 761d82b commit a380575

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

inc/namespace.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Bootstrap the plugin.
14+
*
15+
* Runs on the `after_setup_theme, 20` action.
1416
*/
1517
function bootstrap() {
1618
add_filter( 'query_vars', __NAMESPACE__ . '\\register_query_vars' );

no-fuss-indexnow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040

4141
require_once __DIR__ . '/inc/namespace.php';
4242

43-
bootstrap();
43+
add_action( 'after_setup_theme', __NAMESPACE__ . '\\bootstrap', 20 );

0 commit comments

Comments
 (0)