PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
← All changes | includes/avada-widgets/property-image-shortcode.php +6 -0 2.2.42.3.1 View file →
@@ -1,6 +1,11 @@
1 1 <?php
2 2
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +
3 8 add_shortcode( 'avada_property_image', function( $atts ) {
4 9 $atts = shortcode_atts( array(
5 10 'image_number' => '',
6 11 'image_size' => '',
@@ -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();