baseSalary wrong number format
-
Decimal numbers with separators are output incorrectly in the scheme. Example: 18.00 EUR becomes 1800 EUR. The decimal separator is deleted.
Possible Solution:
class-job-single-view.php
$baseSalary = Job_Postings_Helper::numbers_only($value); if($upto) $upto = Job_Postings_Helper::numbers_only($upto); change to Job_Postings_Helper::numbers_separator_only($value); if($upto) $upto = Job_Postings_Helper::numbers_separator_only($upto);
class-job-posting-helper.php
public static function numbers_separator_only($string){ return preg_replace( '/[^0-9,]/', '', $string ); } change to public static function numbers_separator_only($string){ return preg_replace( '/[^0-9,.]/', '', $string ); }
Preferably decimal numbers with decimal separator are to be indicated with point (according to Schema.org).
Would it be possible to include the fix in the next release?
- The topic ‘baseSalary wrong number format’ is closed to new replies.