#3068 closed defect (bug) (fixed)
single.php creates empty span when no tags are present
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Templates | Keywords: | tags |
Cc: |
Description
This came up on a child theme review. Suggested change. Or is there a better way?
<p class="postmetadata">
<?php the_tags( ('<span class="tags">', 'Tags: ', 'buddypress' ), ', ', '<br />', '</span>'); ?>
<span class="comments"><?php comments_popup_link( ( 'No Comments »', 'buddypress' ), ( '1 Comment »', 'buddypress' ), ( '% Comments »', 'buddypress' ) ); ?></span>
</p>
Change History (6)
Note: See
TracTickets for help on using
tickets.
That would work but I think there is a better way using before =>
<p class="postmetadata">
<?php the_tags( ('<span class="tags">Tags: ', 'buddypress' ), ', ', '<br />'); ?></span>
<span class="comments"><?php comments_popup_link( ( 'No Comments »', 'buddypress' ), ( '1 Comment »', 'buddypress' ), ( '% Comments »', 'buddypress' ) ); ?></span>
</p>