Browse Source

No intervention when doing AJAX (#121)

pull/123/head
Dac Chartrand 7 years ago committed by Ned Zimmerman
parent
commit
e70c3f1e72
  1. 4
      functions.php

4
functions.php

@ -36,7 +36,9 @@ $includes = [
foreach ( $includes as $include ) { foreach ( $includes as $include ) {
require get_template_directory() . "/inc/$include/namespace.php"; require get_template_directory() . "/inc/$include/namespace.php";
} }
require get_template_directory() . '/inc/intervention.php'; if ( ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
require get_template_directory() . '/inc/intervention.php';
}
add_action( 'after_switch_theme', '\Aldine\Activation\create_default_content', 10 ); add_action( 'after_switch_theme', '\Aldine\Activation\create_default_content', 10 );
add_action( 'after_switch_theme', '\Aldine\Activation\create_menus', 11 ); add_action( 'after_switch_theme', '\Aldine\Activation\create_menus', 11 );

Loading…
Cancel
Save