for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Jetpack Compatibility File
* See: http://jetpack.me/
*
* @package WordPress
* @subpackage Strip
*/
* Add theme support for Infinite Scroll.
* See: http://jetpack.me/support/infinite-scroll/
function strip_infinite_scroll_setup() {
add_theme_support('infinite-scroll', array(
add_theme_support
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
'container' => 'content',
'footer' => 'page',
'type' => 'scroll',
'footer_widgets' => false,
'wrapper' => true,
'render' => false,
'posts_per_page' => false,
));
}
add_action( 'after_setup_theme', 'strip_infinite_scroll_setup' );
add_action
* Enables Jetpack's Infinite Scroll for home (blog), disables it in WooCommerce product archives
* @return bool
* https://wordpress.org/support/topic/suppress-infinite-blog-with-woocommerce
function strip_jetpack_infinite_scroll_supported() {
return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search() && ! is_post_type_archive( 'comic' ) );
current_theme_supports
return /** @scrutinizer ignore-call */ current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search() && ! is_post_type_archive( 'comic' ) );
is_home
return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || /** @scrutinizer ignore-call */ is_home() || is_search() && ! is_post_type_archive( 'comic' ) );
is_post_type_archive
return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search() && ! /** @scrutinizer ignore-call */ is_post_type_archive( 'comic' ) );
is_admin
return current_theme_supports( 'infinite-scroll' ) && ( /** @scrutinizer ignore-call */ is_admin() || is_home() || is_search() && ! is_post_type_archive( 'comic' ) );
is_search
return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || /** @scrutinizer ignore-call */ is_search() && ! is_post_type_archive( 'comic' ) );
add_filter( 'infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported' );
add_filter