Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 2eb3836

Browse files
committed
Merge pull request #848 from ernilambar/master
respect content-search.php for search result in Jetpack Infinite Scroll Merging as comments and second opinion given in ticket.
2 parents 7c2d3ce + a64e3a8 commit 2eb3836

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

inc/jetpack.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function _s_jetpack_setup() {
3232
function _s_infinite_scroll_render() {
3333
while ( have_posts() ) {
3434
the_post();
35-
get_template_part( 'template-parts/content', get_post_format() );
35+
if ( is_search() ) :
36+
get_template_part( 'template-parts/content', 'search' );
37+
else :
38+
get_template_part( 'template-parts/content', get_post_format() );
39+
endif;
3640
}
3741
} // end function _s_infinite_scroll_render

0 commit comments

Comments
 (0)