I even added:
add_filter( 'infinite_scroll_js_settings','kupuae5_enforce_infinite_scroll_init');
function kupuae5_enforce_infinite_scroll_init($args) {
$args['footer'] = false;
$args['wrapper'] = false;
return $args;
}
...and the JavaScript output looks like:
var infiniteScroll = {"settings":{"id":"content","ajaxurl":"http:\/\/thinkingman.dynalias.com\/news\/?infinity=scrolling","type":"scroll","wrapper":false,"wrapper_class":"infinite-wrap","footer":false,"text":"Load more posts","totop":"Scroll back to top","order":"DESC","scripts":[],"styles":[],"google_analytics":false,"offset":0,"history":{"host":"thinkingman.dynalias.com","path":"\/news\/page\/%d\/","use_trailing_slashes":true},"stats":"blog=42360431&host=thinkingman.dynalias.com&v=ext&j=1:2.1.2&x_pagetype=infinite-jetpack"}};
...and in the generated source, you will still find the wrapper!!! :-(
...<div class="infinite-wrap infinite-view-1" id="infinite-view-1" data-page-num="1">
<article id="post-1358" class="post-1358 post type-post status-publish format-standard hentry category-videos">
<header class="entry-header">...