- The %params[name]% array variable now available for post templates.
- The cseo_shorten_html API function added:
cseo_shorten_html(string $text, int $max_length = 0, string $ending = '...', bool $exact = false) : string
The function shortens the given text and preserves the HTML tags.
Parameters:
$text – a HTML-formatted text to short.
$max_length – max length of shortened text in text characters.
$ending – a string suffix which will be added to the shortened text.
$exact – should the text be cut off at the exact length or the whole last word must be preserved. - Local image storage and post thumbnail generation routines improved.