| @@ -26,12 +26,11 @@ | ||
| 26 | 26 | public function get_header_snippet() |
| 27 | 27 | { |
| 28 | 28 | $code_snippet_options = get_option(Metasync::option_name)['codesnippets'] ?? ''; |
| 29 | 29 | $header_snippet_option = $code_snippet_options['header_snippet'] ?? ''; |
| 30 | - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw header/footer snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 31 | 30 | echo $header_snippet_option; |
| 32 | - echo get_post_meta(get_the_ID())['custom_post_header'][0] ?? ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw per-post header snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 33 | - echo get_post_meta(get_the_ID())['searchatlas_embed_top'][0] ?? ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw per-post header snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 31 | + echo get_post_meta(get_the_ID())['custom_post_header'][0] ?? ''; | |
| 32 | + echo get_post_meta(get_the_ID())['searchatlas_embed_top'][0] ?? ''; | |
| 34 | 33 | |
| 35 | 34 | } |
| 36 | 35 | |
| 37 | 36 | /** |
| @@ -41,10 +40,9 @@ | ||
| 41 | 40 | public function get_footer_snippet() |
| 42 | 41 | { |
| 43 | 42 | $code_snippet_options = get_option(Metasync::option_name)['codesnippets'] ?? ''; |
| 44 | 43 | $footer_snippet_option = $code_snippet_options['footer_snippet'] ?? ''; |
| 45 | - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw header/footer snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 46 | 44 | echo $footer_snippet_option; |
| 47 | - echo get_post_meta(get_the_ID())['custom_post_footer'][0] ?? ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw per-post footer snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 48 | - echo get_post_meta(get_the_ID())['searchatlas_embed_bottom'][0] ?? ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- raw per-post footer snippet feature: customers paste arbitrary analytics/GTM markup and it must render verbatim | |
| 45 | + echo get_post_meta(get_the_ID())['custom_post_footer'][0] ?? ''; | |
| 46 | + echo get_post_meta(get_the_ID())['searchatlas_embed_bottom'][0] ?? ''; | |
| 49 | 47 | } |
| 50 | 48 | } |