Commit c3ef96b8 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#174993 by peterx, webchick and Freso@freso.dk: WAI AA comformant title for...

#174993 by peterx, webchick and Freso@freso.dk: WAI AA comformant title for read more links, ie. we are not repeating the same text but include meaningful information
parent 43cb4abd
......@@ -1246,7 +1246,9 @@ function node_link($type, $node = NULL, $teaser = FALSE) {
$links['node_read_more'] = array(
'title' => t('Read more'),
'href' => "node/$node->nid",
'attributes' => array('title' => t('Read the rest of this posting.'))
// The title attribute gets escaped when the links are processed, so
// there is no need to escape here.
'attributes' => array('title' => t('Read the rest of !title.', array('!title' => $node->title)))
);
}
}
......
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