Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/webmention handling #9

Merged
merged 4 commits into from Jan 14, 2020
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Remove count from reactions heading

  • Loading branch information
jeremyfelt committed Jan 14, 2020
commit 378a39cb09155c38a5e6b8cf33b05ff08107dcb2
@@ -25,25 +25,7 @@
<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One reaction on &ldquo;%1$s&rdquo;', 'writemore' ),
'<span>' . get_the_title() . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s reactions on &ldquo;%2$s&rdquo;', '%1$s reactions on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'writemore' ) ),
number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>'
);
}
?>
</h2><!-- .comments-title -->
<h2 class="comments-title">Reactions on &ldquo;<?php echo get_the_title(); ?>&rdquo;</h2>

<?php

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.