is_tgmpa_complete() && ! ( defined( 'WP_CLI' ) && WP_CLI ) ) { wp_redirect( TGM_Plugin_Activation::get_instance()->get_tgmpa_url() ); } } vamtam_register_theme_activation_hook( 'vamtam_' . VAMTAM_THEME_NAME, 'vamtam_theme_activated' ); add_action( 'admin_init', 'vamtam_validate_install' ); function vamtam_validate_install() { global $vamtam_errors, $vamtam_validated; if ( $vamtam_validated ) return; $vamtam_validated = true; $vamtam_errors = array(); if ( strpos( str_replace( WP_CONTENT_DIR . '/themes/', '', get_template_directory() ), '/' ) !== false ) { $vamtam_errors[] = esc_html__( 'The theme must be installed in a directory which is a direct child of wp-content/themes/', 'vamtam-consulting' ); } if ( ! extension_loaded( 'gd' ) || ! function_exists( 'gd_info' ) ) { $vamtam_errors[] = esc_html__( "It seems that your server doesn't have the GD graphic library installed. Please contact your hosting provider, they should be able to assist you with this issue", 'vamtam-consulting' ); } if ( count( $vamtam_errors ) ) { if ( ! function_exists( 'vamtam_invalid_install' ) ) { function vamtam_invalid_install() { global $vamtam_errors; ?>

'error', 'message' => $error, 'memory' => memory_get_peak_usage() / 1024 / 1024, ) ); } else { echo json_encode( array( 'status' => 'ok', 'memory' => memory_get_peak_usage() / 1024 / 1024, ) ); } exit; } add_action( 'wp_ajax_vamtam-compile-less', 'vamtam_compile_less_ajax' );