Permalink
Browse files

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.
  • Loading branch information...
Tammie Lister
Tammie Lister committed Nov 11, 2015
2 parents 7c2d3ce + a64e3a8 commit 2eb3836006acb454b5cc4b40b4cf61a3bc419046
Showing with 5 additions and 1 deletion.
  1. +5 −1 inc/jetpack.php
View
@@ -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.