Merge "Support "rel" attributes on content action links (e.g. rel=archives)"

This commit is contained in:
jenkins-bot 2015-02-15 01:10:54 +00:00 committed by Gerrit Code Review
commit c75d8183c5
1 changed files with 4 additions and 1 deletions

View File

@ -469,7 +469,10 @@ class VectorTemplate extends BaseTemplate {
?>><span><a href="<?php
echo htmlspecialchars( $link['href'] )
?>" <?php
echo $link['key']
echo $link['key'];
if ( isset ( $link['rel'] ) ) {
echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
}
?>><?php
// $link['text'] can be undefined - bug 27764
if ( array_key_exists( 'text', $link ) ) {