Wordpress 7+
Tests / tests (push) Canceled after 0s

This commit is contained in:
sandros committed 2026-09-26 22:32:01 +02:00
1 parent 17eaad7a92
commit 99646663d6
7 files changed
+40 -10

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ class Asset_Manager {
wp_register_script( 'laps', plugins_url( "public/js/laps{$suffix}.js", dirname( __DIR__ ) ), [ 'jquery' ], '3.4.0', true );
wp_register_style( 'laps', plugins_url( "public/css/laps{$suffix}.css", dirname( __DIR__ ) ) );
if ( is_admin_bar_showing() ) {
if ( is_admin_bar_showing() && apply_filters( 'laps_can_see', current_user_can( 'manage_options' ) ) ) {
wp_enqueue_script( 'laps' );
wp_enqueue_style( 'laps' );
}