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 | templates/content-property.php +5 -0 1.4.492.3.1 View file →
@@ -18,8 +18,9 @@
18 18 $propertyhive_loop['loop'] = 0;
19 19
20 20 // Store column count for displaying the grid
21 21 if ( empty( $propertyhive_loop['columns'] ) )
22 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Existing public Property Hive extension hook loop_search_results_columns; changing the established name would detach installed callbacks.
22 23 $propertyhive_loop['columns'] = apply_filters( 'loop_search_results_columns', 1 );
23 24
24 25 // Ensure visibility
25 26 if ( ! $property )
@@ -28,14 +29,18 @@
28 29 // Increase loop count
29 30 ++$propertyhive_loop['loop'];
30 31
31 32 // Extra post classes
33 +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
32 34 $classes = array('clear');
33 35 if ( 0 == ( $propertyhive_loop['loop'] - 1 ) % $propertyhive_loop['columns'] || 1 == $propertyhive_loop['columns'] )
36 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
34 37 $classes[] = 'first';
35 38 if ( 0 == $propertyhive_loop['loop'] % $propertyhive_loop['columns'] )
39 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
36 40 $classes[] = 'last';
37 41 if ( $property->featured == 'yes' )
42 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
38 43 $classes[] = 'featured';
39 44 ?>
40 45 <li <?php post_class( $classes ); ?>>
41 46