Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayadav09 committed Nov 8, 2024
1 parent 63aaef1 commit cad49c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions includes/HelpCenterFeatureHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function clearhelpCenter() {
}

/**
* incline script to clear localStorage
* Inline script to clear localStorage
*/
public function enqueue_clear_storage_script() {

Expand All @@ -54,9 +54,6 @@ public function enqueue_clear_storage_script() {
// Add the inline script to `nfd-help-center` if it’s enqueued
if ( wp_script_is( 'nfd-help-center', 'enqueued' ) ) {
wp_add_inline_script( 'nfd-help-center', $clear_storage_js );
} else {
// Fallback: Add the inline script directly to `admin_enqueue_scripts`
echo "<script>{$clear_storage_js}</script>";
}
}

Expand Down

0 comments on commit cad49c2

Please sign in to comment.