Skip to content

Commit e97c6d9

Browse files
committed
fix(assets): use dynamic slug for admin style hook
1 parent 45142b0 commit e97c6d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Plugin/Assets.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function load_assets(): void {
3737
*
3838
*/
3939
public function load_admin_styles( string $hook_suffix = '' ): void {
40-
if ( ! $hook_suffix || ! str_contains( $hook_suffix, 'framework-demo' ) ) {
40+
if ( ! $hook_suffix || ! str_contains( $hook_suffix, $this->core->get_name() ) ) {
4141
return;
4242
}
4343

0 commit comments

Comments
 (0)