Skip to content

Commit

Permalink
Fix typo in comments_live_list
Browse files Browse the repository at this point in the history
Fixes #4624
  • Loading branch information
westonruter committed Sep 2, 2021
1 parent 68f19e0 commit 7048f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/sanitizers/class-amp-comments-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AMP_Comments_Sanitizer extends AMP_Base_Sanitizer {
* @var array
*/
protected $DEFAULT_ARGS = [
'comment_live_list' => false, // @todo See <https://github.com/ampproject/amp-wp/issues/4624>.
'comments_live_list' => false,
'thread_comments' => false, // By default maps to thread_comments option.
'allow_commenting_scripts' => false,
];
Expand All @@ -65,7 +65,7 @@ public function sanitize() {
}
}

if ( ! empty( $this->args['comments_live_list'] ) ) {
if ( $this->args['comments_live_list'] ) {
$comments = $this->dom->xpath->query( '//amp-live-list/*[ @items ]/*[ starts-with( @id, "comment-" ) ]' );

foreach ( $comments as $comment ) {
Expand Down

0 comments on commit 7048f65

Please sign in to comment.