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

Add sort=ascending to amp-live-list for comments when asc order #84

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

westonruter
Copy link
Contributor

Copy link
Contributor

@kienstra kienstra left a comment

Choose a reason for hiding this comment

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

Approved, Minor Point

Hi @westonruter,
This looks good. There's a minor point, but it's not a blocker to merging.

If it's alright, I'm going to merge this now.

@@ -29,7 +29,8 @@

<div class="comments wrap__item">

<amp-live-list id="amp-live-comments-list-<?php the_ID(); ?>" class="live-list" layout="container" data-poll-interval="<?php echo esc_attr( AMPCONF_LIVE_LIST_POLL_INTERVAL ); ?>" data-max-items-per-page="<?php echo esc_attr( get_option( 'page_comments' ) ? get_option( 'comments_per_page' ) : 10000 ); ?>">
<?php $sort_attr = ( 'asc' === get_option( 'comment_order' ) ) ? ' sort="ascending" ' : ''; ?>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this could be 'sort="ascending"' instead of ' sort="ascending" '. When this is echoed on the next line, there are already empty spaces before and after.

@kienstra kienstra merged commit 2b219bf into develop Apr 2, 2018
@kienstra kienstra removed their assignment Apr 2, 2018
@kienstra kienstra deleted the add/amp-live-list-sorting branch April 2, 2018 19:40
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