Skip to content

Commit

Permalink
Fix next page articles attached in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Nov 13, 2024
1 parent 561b4ba commit a6fe349
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions friends.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,7 @@
'section.posts .posts-navigation .nav-previous'
).removeClass( 'loading' );
if ( newPosts ) {
$( 'section.posts' )
.find( 'article:last-of-type' )
.after( newPosts );
$( 'section.posts > article' ).last().after( newPosts );
if (
++friends.current_page < friends.max_page &&
/<article/.test( newPosts )
Expand Down

0 comments on commit a6fe349

Please sign in to comment.