Twenty Fourteen: fix case of featured posts `has_tag()` check that was adding an empty `footer` element. See #25868, props iamtakashi.

git-svn-id: https://develop.svn.wordpress.org/trunk@26048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-11-08 05:53:48 +00:00
parent 2ae699bcf2
commit 15173413e5
9 changed files with 32 additions and 61 deletions

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -53,11 +53,8 @@
?>
</div><!-- .entry-content -->
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -62,11 +62,8 @@
</div><!-- .entry-content -->
<?php endif; ?>
<?php if ( has_tag() ) : ?>
<footer class="entry-meta">
<span class="tag-links">
<?php echo get_the_tag_list(); ?>
</span>
</footer><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( has_tag() )
echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
?>
</article><!-- #post-## -->

View File

@ -1138,11 +1138,6 @@ a.post-thumbnail:hover {
padding: 0 10px;
}
.site-content footer.entry-meta:empty {
margin: 0;
}
/* Tag links style */
.tag-links a {