| @@ -1,7 +1,12 @@ | ||
| 1 | 1 | <div |
| 2 | - <?php echo $wrapper_attr; ?>> | |
| 3 | - <?php | |
| 4 | - $attributes = betterdocs()->template_helper->get_html_attributes( $shortcode_attr ); | |
| 5 | - echo do_shortcode( shortcode_unautop( '[betterdocs_search_form ' . $attributes . ']' ) ); | |
| 6 | - ?> | |
| 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 ?>> | |
| 8 | + <?php | |
| 9 | + $attributes = betterdocs()->template_helper->get_html_attributes( $shortcode_attr ); | |
| 10 | + echo do_shortcode( shortcode_unautop( '[betterdocs_search_form ' . $attributes . ']' ) ); | |
| 11 | + ?> | |
| 7 | 12 | </div> |