Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Don't show separator between meta block and Leave a Comment link in pages contained within search results. #70

Closed
wants to merge 1 commit into from

1 participant

@philiparthurmoore
Collaborator

Extra entry meta separator is present for pages visible in search results. Verify that what's being displayed is a post before outputting a separator before the Leave a Comment link

Alt text

Philip Arthur Moore _s: Don't show separator between meta block and Leave a Comment link …
…in pages contained within search results.

Extra entry meta separator is present for pages visible in search
results. Verify that what's being displayed is a post before outputting
a separator before the Leave a Comment link.
de9fbe6
@philiparthurmoore
Collaborator

I fail at .git. Closing one more time to properly fork _s and create branches for each bug.

@marksantiago marksantiago referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. _s: Don't show separator between meta block and Leave a Comment link …

    Philip Arthur Moore authored
    …in pages contained within search results.
    
    Extra entry meta separator is present for pages visible in search
    results. Verify that what's being displayed is a post before outputting
    a separator before the Leave a Comment link.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 content.php
View
6 content.php
@@ -52,8 +52,10 @@
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
- <span class="sep"> | </span>
- <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
+ <?php if ( 'post' == get_post_type() ) : ?>
+ <span class="sep"> | </span>
+ <?php endif; // End if 'post' == get_post_type() ?>
+ <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="sep"> | </span><span class="edit-link">', '</span>' ); ?>
Something went wrong with that request. Please try again.