| @@ -1,6 +1,11 @@ | ||
| 1 | 1 | <div |
| 2 | - <?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> | |
| 2 | + <?php | |
| 3 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | +echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> | |
| 3 | 8 | <?php |
| 4 | 9 | $attributes = betterdocs()->template_helper->get_html_attributes( $shortcode_attr ); |
| 5 | 10 | echo do_shortcode( shortcode_unautop( '[betterdocs_search_form ' . $attributes . ']' ) ); |
| 6 | 11 | ?> |