| @@ -1,6 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 7 | + | |
| 3 | 8 | add_shortcode( 'avada_property_map', function( $atts ) { |
| 4 | 9 | $atts = shortcode_atts( array( |
| 5 | 10 | 'height' => '', |
| 6 | 11 | 'zoom' => '', |
| @@ -17,8 +22,9 @@ | ||
| 17 | 22 | global $property; |
| 18 | 23 | |
| 19 | 24 | if ( empty($property) ) |
| 20 | 25 | { |
| 26 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Shared frontend property global used by the Avada shortcode contract; changing $property would break the existing property context passed to these widgets. | |
| 21 | 27 | $property = new PH_Property(get_the_ID()); |
| 22 | 28 | } |
| 23 | 29 | |
| 24 | 30 | ob_start(); |