Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Fix parameters using wp_register_script function
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezbrito committed Oct 29, 2024
1 parent 54f338e commit 21ff7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static function assets( $hook ) {
}

// These assets are loaded in all wp-admin
\wp_register_script( 'newfold-plugin', null, null, BLUEHOST_PLUGIN_VERSION, true );
\wp_register_script( 'newfold-plugin', false, array(), BLUEHOST_PLUGIN_VERSION, true );
\wp_localize_script(
'newfold-plugin',
'nfdplugin',
Expand Down

0 comments on commit 21ff7b0

Please sign in to comment.