דלג על ניווט

נושא זה מכיל 0 תגובות, יש ל 1קוֹל.

עודכן לאחרונה על ידי olegA-5 לפני 7 חודשים.

בסיוע: Dražen.

מחבר פוסטים
מאי 24, 2024בְּ- 11:02 am #15667338

olegA-5

Background of the issue:
I am working on a site under development and using WPML/ATE for translation management. I am trying to understand the behavior of WPML's is_numeric function, particularly when dealing with strings that include non-breaking spaces.

Symptoms:
WPML/ATE treats the string ' 01.01.2024' as numeric despite the presence of a non-breaking space, which should typically result in a false outcome from the is_numeric function.

Questions:
Why does WPML/ATE treat the string ' 01.01.2024' as numeric even though it starts with a non-breaking space?
What modifications can be made to a numeric string to ensure WPML/ATE does not treat it as numeric and includes it in the required translation?