Skip to content

Commit be0e75d

Browse files
committed
Fix the accidental removal of 'data-plugin-slug' attribute
1 parent 70d495d commit be0e75d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/performance-lab/includes/admin/plugins.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ function perflab_render_plugin_card( array $plugin_data ): void {
453453
);
454454

455455
$action_links[] = sprintf(
456-
'<a class="button perflab-install-active-plugin" href="%s">%s</a>',
456+
'<a class="button perflab-install-active-plugin" href="%s" data-plugin-slug="%s">%s</a>',
457457
esc_url( $url ),
458+
esc_attr( $plugin_data['slug'] ),
458459
esc_html__( 'Activate', 'default' )
459460
);
460461
} else {

0 commit comments

Comments
 (0)