public/wordpress/wp-content/plugins/wp-courseware/includes/core/ajax.php
/**
	 * Set AJAX constant and headers.
	 *
	 * @since 4.3.0
	 */
Set AJAX constant and headers.
Set AJAX constant and headers .
public function define_ajax() {
		if ( ! empty( $_GET['wpcw-ajax'] ) ) {
			wpcw_maybe_define_constant( 'DOING_AJAX', true );
			wpcw_maybe_define_constant( 'WPCW_DOING_AJAX', true );
			if ( ! WP_DEBUG || ( WP_DEBUG && ! WP_DEBUG_DISPLAY ) ) {
				@ini_set( 'display_errors', 0 ); 
			}
			$GLOBALS['wpdb']->hide_errors();
		}
	}
public function define_ajax ( ) { if ( ! empty ( $ _GET [ 'wpcw-ajax' ] ) ) { wpcw_maybe_define_constant ( 'DOING_AJAX' , true ) ; wpcw_maybe_define_constant ( 'WPCW_DOING_AJAX' , true ) ; if ( ! WP_DEBUG || ( WP_DEBUG && ! WP_DEBUG_DISPLAY ) ) { @ ini_set ( 'display_errors' , 0 ) ; } $ GLOBALS [ 'wpdb' ] -> hide_errors ( ) ; } }
Set AJAX constant and headers.
Set AJAX constant and headers .
// Turn off display_errors during AJAX events to prevent malformed JSON