| @@ -9,16 +9,11 @@ | ||
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 11 | 11 | |
| 12 | 12 | global $property; |
| 13 | - | |
| 14 | -if ($property->department == 'commercial') | |
| 15 | -{ | |
| 16 | 13 | ?> |
| 17 | 14 | <div class="floor-area"> |
| 18 | 15 | |
| 19 | - <?php echo $property->get_formatted_floor_area(); ?> | |
| 16 | + <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The formatter escapes built-in area text before its trusted PHP HTML filter. | |
| 17 | + echo $property->get_formatted_floor_area(); ?> | |
| 20 | 18 | |
| 21 | -</div> | |
| 22 | -<?php | |
| 23 | -} | |
| 24 | -?> | |
| 19 | +</div> | |