Skip to content

Commit

Permalink
Update super-admin-all-sites-menu.php
Browse files Browse the repository at this point in the history
Fixes deprecation warning "Using ${var} in strings is deprecated, use {$var} instead" for PHP 8.2+

Fixes soderlind#23
  • Loading branch information
Zodiac1978 authored Aug 27, 2024
1 parent 21568a7 commit 8c211a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion super-admin-all-sites-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public function action_enqueue_scripts( string $hook_suffix ) : void {
]
);

wp_add_inline_script( 'super-admin-all-sites-menu', "const pluginAllSitesMenu = ${data};", 'before' );
wp_add_inline_script( 'super-admin-all-sites-menu', "const pluginAllSitesMenu = {$data};", 'before' );
wp_set_script_translations( 'super-admin-all-sites-menu', 'super-admin-all-sites-menu' );
}

Expand Down

0 comments on commit 8c211a4

Please sign in to comment.