Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

_s: Move post meta separators inside conditionals ensuring that separ…

…ators will not be orphaned. Use consistent 'edit link' whitespace in image.php as well.

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9087 d957f892-c61d-0410-b221-f235e6eecf30
  • Loading branch information...
commit 34c55ff465294edfa6b05e519d1077333ac471fe 1 parent 10314c8
@mfields mfields authored
Showing with 4 additions and 5 deletions.
  1. +3 −4 content.php
  2. +1 −1  image.php
View
7 content.php
@@ -37,7 +37,6 @@
<span class="cat-links">
<?php printf( __( 'Posted in %1$s', '_s' ), $categories_list ); ?>
</span>
- <span class="sep"> | </span>
<?php endif; // End if categories ?>
<?php
@@ -45,18 +44,18 @@
$tags_list = get_the_tag_list( '', __( ', ', '_s' ) );
if ( $tags_list ) :
?>
+ <span class="sep"> | </span>
<span class="tag-links">
<?php printf( __( 'Tagged %1$s', '_s' ), $tags_list ); ?>
</span>
- <span class="sep"> | </span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
- <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
<span class="sep"> | </span>
+ <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
<?php endif; ?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- #entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
View
2  image.php
@@ -31,7 +31,7 @@
get_the_title( $post->post_parent )
);
?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
<nav id="image-navigation">

0 comments on commit 34c55ff

Please sign in to comment.
Something went wrong with that request. Please try again.