File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
plugins/optimization-detective Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff line change 2323add_action ( 'wp_head ' , 'od_render_generator_meta_tag ' );
2424add_filter ( 'site_status_tests ' , 'od_add_rest_api_availability_test ' );
2525add_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 ' );
2727add_action ( 'after_plugin_row_meta ' , 'od_render_rest_api_health_check_admin_notice_in_plugin_row ' , 30 );
2828add_filter ( 'plugin_action_links_optimization-detective/load.php ' , 'od_render_extensions_action_link ' );
2929add_action ( 'rest_api_init ' , 'od_register_rest_url_metric_store_endpoint ' );
You can’t perform that action at this time.
0 commit comments