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

Update comments template for amp-live-list #52

Merged
merged 5 commits into from
Jan 31, 2018

Conversation

westonruter
Copy link
Contributor

@westonruter westonruter commented Jan 30, 2018

<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
Copy link
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
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