| @@ -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 | |