Commit 0771f0ed authored by ojohansson's avatar ojohansson Committed by Renato Goncalves de Araujo
Browse files

Issue #2140087 by olofjohansson, maximpodorov, mistermoper, RenatoG: Allow '0' as the link title

parent 1830a003
......@@ -607,7 +607,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$entity) {
$title = filter_xss($title, array('b', 'br', 'code', 'em', 'i', 'img', 'span', 'strong', 'sub', 'sup', 'tt', 'u'));
$item['html'] = TRUE;
}
$item['title'] = empty($title) ? $item['display_url'] : $title;
$item['title'] = empty($title) && $title !== '0' ? $item['display_url'] : $title;
if (!isset($item['attributes'])) {
$item['attributes'] = array();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment