Replace the get_post_format() calls in get_template_part() to complete the post format removal that was started in #1017. Fixes #1148.
This commit is contained in:
parent
05511d4846
commit
47829ce9cd
3 changed files with 7 additions and 7 deletions
|
@ -53,7 +53,7 @@ function _s_infinite_scroll_render() {
|
|||
if ( is_search() ) :
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
else :
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
get_template_part( 'template-parts/content', get_post_type() );
|
||||
endif;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue