Skip to content

Commit

Permalink
Merge pull request #848 from ernilambar/master
Browse files Browse the repository at this point in the history
respect content-search.php for search result in Jetpack Infinite Scroll
Merging as comments and second opinion given in ticket.
  • Loading branch information
karmatosed committed Nov 11, 2015
2 parents 7c2d3ce + a64e3a8 commit 2eb3836
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function _s_jetpack_setup() {
function _s_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_format() );
if ( is_search() ) :
get_template_part( 'template-parts/content', 'search' );
else :
get_template_part( 'template-parts/content', get_post_format() );
endif;
}
} // end function _s_infinite_scroll_render

0 comments on commit 2eb3836

Please sign in to comment.