Skip to content
This repository was archived by the owner on Oct 10, 2018. It is now read-only.

Update comments template for amp-live-list#52

Merged
westonruter merged 5 commits intodevelopfrom
update/comments-template
Jan 31, 2018
Merged

Update comments template for amp-live-list#52
westonruter merged 5 commits intodevelopfrom
update/comments-template

Conversation

@westonruter
Copy link
Copy Markdown
Contributor

@westonruter westonruter commented Jan 30, 2018

<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westonruter isn't this doing the same this as _nx() below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from _s: https://github.com/Automattic/_s/blob/388951f1eeda411a066d2eab47d6ae5165743d87/comments.php#L30-L44

Some languages have different forms for singular in particular and that is why there is a separate condition here I believe.

@westonruter westonruter merged commit fcadcb0 into develop Jan 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants