You appear to be a bot. Output may be restricted
Description
Our own Ajax response, avoiding calling admin-ajax
Usage
The_Neverending_Home_Page::ajax_response();
Parameters
Returns
void
Source
File name: jetpack/modules/infinite-scroll/infinity.php
Lines:
1 to 23 of 23
function ajax_response() { // Only proceed if the url query has a key of "Infinity" if ( ! self::got_infinity() ) return false; // This should already be defined below, but make sure. if ( ! defined( 'DOING_AJAX' ) ) { define( 'DOING_AJAX', true ); } @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) ); send_nosniff_header(); /** * Fires at the end of the Infinite Scroll Ajax response. * * @module infinite-scroll * * @since 2.0.0 */ do_action( 'custom_ajax_infinite_scroll' ); die( '0' ); }