| @@ -12,8 +12,9 @@ | ||
| 12 | 12 | * @package PropertyHive/Classes |
| 13 | 13 | * @category Class |
| 14 | 14 | * @author PropertyHive |
| 15 | 15 | */ |
| 16 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Legacy public global class PH_Appraisal; preserving the existing PH_* class name is required for plugin and extension compatibility. | |
| 16 | 17 | class PH_Appraisal { |
| 17 | 18 | |
| 18 | 19 | /** @public int Appraisal (post) ID */ |
| 19 | 20 | public $id; |
| @@ -209,9 +210,9 @@ | ||
| 209 | 210 | case "pa": { $price = ($price * 12); break; } |
| 210 | 211 | } |
| 211 | 212 | } |
| 212 | 213 | |
| 213 | - return ( ( $price != '' ) ? $prefix . ph_display_price_field($price) . $suffix . ' ' . __( $this->_rent_frequency, 'propertyhive' ) : '-' ); | |
| 214 | + return ( ( $price != '' ) ? $prefix . ph_display_price_field($price) . $suffix . ' ' . propertyhive_get_rent_frequency_label( $this->_rent_frequency ) : '-' ); | |
| 214 | 215 | break; |
| 215 | 216 | } |
| 216 | 217 | } |
| 217 | 218 | |