Skip to content

Commit 773eb78

Browse files
committed
Only show on plugins page
1 parent b73b1de commit 773eb78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugins/optimization-detective/helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ function od_maybe_render_installed_extensions_admin_notice(): void {
297297
add_thickbox();
298298
echo wp_kses( $notice, wp_kses_allowed_html( 'post' ) );
299299
}
300+
300301
/**
301302
* Checks for installed extensions and displays an admin notice once if none are found.
302303
*

plugins/optimization-detective/hooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
add_action( 'wp_head', 'od_render_generator_meta_tag' );
2424
add_filter( 'site_status_tests', 'od_add_rest_api_availability_test' );
2525
add_action( 'admin_init', 'od_maybe_run_rest_api_health_check' );
26-
add_action( 'admin_init', 'od_maybe_check_installed_extensions' );
26+
add_action( 'load-plugins.php', 'od_maybe_check_installed_extensions' );
2727
add_action( 'after_plugin_row_meta', 'od_render_rest_api_health_check_admin_notice_in_plugin_row', 30 );
2828
add_filter( 'plugin_action_links_optimization-detective/load.php', 'od_render_extensions_action_link' );
2929
add_action( 'rest_api_init', 'od_register_rest_url_metric_store_endpoint' );

0 commit comments

Comments
 (0)