← All changes
|
includes/salient-widgets/property-availability-html.php
+6
-1
2.2.5
→
2.3.1
View file →
| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 | 4 | |
| 5 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 5 | 6 | $css = ''; |
| 6 | 7 | |
| 7 | 8 | extract(shortcode_atts(array( |
| 8 | 9 | "css" => "", |
| @@ -18,17 +19,21 @@ | ||
| 18 | 19 | if ( $property->availability == '' ) { |
| 19 | 20 | return; |
| 20 | 21 | } |
| 21 | 22 | |
| 23 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery/Visual Composer framework filter constant; the integration requires the framework hook name unchanged. WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 22 | 24 | $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); |
| 23 | 25 | |
| 26 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 24 | 27 | $style = ''; |
| 25 | 28 | if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) ) |
| 26 | 29 | { |
| 30 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 27 | 31 | $style = ph_extract_font_style_from_salient_font_container( $font_container ); |
| 28 | 32 | } |
| 29 | 33 | |
| 34 | +// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The style fragment is built by ph_extract_font_style_from_salient_font_container() using safecss_filter_attr() and esc_attr(). | |
| 30 | 35 | echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>'; |
| 31 | 36 | |
| 32 | 37 | echo esc_html($property->availability); |
| 33 | 38 | |
| 34 | -echo '</div>'; | |
| 39 | +echo '</div>'; | |