I built some layers for a site I’m working on containing text sliders with hebrew text, upon displaying the layers some of the text was transformed into some unknown characters. After some debugging I have gotten to this file:
“config-layerslider/LayerSlider/wp/shortcodes.php”
and to this line:
“$data = trim(preg_replace(‘/\s+/’, ‘ ‘, $data));”
Now apparently some hebrrew unicode text was replaced by this preg_replace, since all my layer text is in hebrew I had no problems replacing this with:
“$data = trim(preg_replace(‘/\s+/u‘, ‘ ‘, $data))”
but I think a future fix to the layerslider might be in order to support this kind of situations.
Thank you!
Hey!
We’re not the developers of LayerSlider. I recommend to report the bug here: http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/1362246/comments – I guess the plugin author will add it to the next plugin update if your fix makes sense.
Regards,
Peter