diff --git a/src/js/components/EditMenu/SnippetForm/fields/SnippetLocationInput.tsx b/src/js/components/EditMenu/SnippetForm/fields/SnippetLocationInput.tsx index b3642c19..598e6f32 100644 --- a/src/js/components/EditMenu/SnippetForm/fields/SnippetLocationInput.tsx +++ b/src/js/components/EditMenu/SnippetForm/fields/SnippetLocationInput.tsx @@ -19,7 +19,6 @@ const SCOPE_ICONS: Record = { 'admin-css': 'dashboard', 'site-css': 'admin-customizer', 'site-head-js': 'media-code', - 'site-body-js': 'media-code', 'site-footer-js': 'media-code' } @@ -35,7 +34,6 @@ const SCOPE_DESCRIPTIONS: Record = { 'site-css': __('Site front-end', 'code-snippets'), 'admin-css': __('Administration area', 'code-snippets'), 'site-head-js': __('In site header ( section)', 'code-snippets'), - 'site-body-js': __('In site content (start of )', 'code-snippets'), 'site-footer-js': __('In site footer (end of )', 'code-snippets') } diff --git a/src/js/types/Snippet.ts b/src/js/types/Snippet.ts index 7d757d17..57ad65a2 100644 --- a/src/js/types/Snippet.ts +++ b/src/js/types/Snippet.ts @@ -30,6 +30,6 @@ export const SNIPPET_TYPE_SCOPES = { php: ['global', 'admin', 'front-end', 'single-use'], html: ['content', 'head-content', 'body-content', 'footer-content'], css: ['admin-css', 'site-css'], - js: ['site-head-js', 'site-body-js', 'site-footer-js'], + js: ['site-head-js', 'site-footer-js'], cond: ['condition'] } diff --git a/src/php/Model/Snippet.php b/src/php/Model/Snippet.php index 20c0f6f1..5de42536 100644 --- a/src/php/Model/Snippet.php +++ b/src/php/Model/Snippet.php @@ -314,7 +314,7 @@ public static function get_all_scopes(): array { 'global', 'admin', 'front-end', 'single-use', 'content', 'head-content', 'body-content', 'footer-content', 'admin-css', 'site-css', - 'site-head-js', 'site-body-js', 'site-footer-js', + 'site-head-js', 'site-footer-js', 'condition', ); } @@ -337,7 +337,6 @@ public static function get_scope_icons(): array { 'admin-css' => 'dashboard', 'site-css' => 'admin-customizer', 'site-head-js' => 'media-code', - 'site-body-js' => 'media-code', 'site-footer-js' => 'media-code', 'condition' => 'randomize', ); @@ -373,8 +372,6 @@ protected function get_scope_name(): string { return __( 'Front-end styles', 'code-snippets' ); case 'site-head-js': return __( 'Head scripts', 'code-snippets' ); - case 'site-body-js': - return __( 'Body scripts', 'code-snippets' ); case 'site-footer-js': return __( 'Footer scripts', 'code-snippets' ); } diff --git a/src/php/Utils/i18n.php b/src/php/Utils/i18n.php index 75f3d606..405907a4 100644 --- a/src/php/Utils/i18n.php +++ b/src/php/Utils/i18n.php @@ -24,7 +24,6 @@ 'site-css' => __( 'Site front-end stylesheet', 'code-snippets' ), 'admin-css' => __( 'Administration area stylesheet', 'code-snippets' ), 'site-head-js' => __( 'JavaScript loaded in the site <head> section', 'code-snippets' ), - 'site-body-js' => __( 'JavaScript loaded at the start of the <body> tag', 'code-snippets' ), 'site-footer-js' => __( 'JavaScript loaded at the end of the <body> tag', 'code-snippets' ), 'head-content' => __( 'HTML output in the <head> section', 'code-snippets' ), 'body-content' => __( 'HTML output at the start of the <body> tag', 'code-snippets' ),