<?php
/**
 * Theme setup.
 *
 * @package Caeliora
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

/*
 * Update Kirki URL contents
 * Fix for: https://github.com/themeum/kirki/issues/2524
 */
if ( 1 != get_option( 'caeliora_kirki_url_contents_cleared', 0 ) ) {
	add_option( 'caeliora_kirki_url_contents_cleared', 0 );
}

/**
* Update Kirki URL contents
*/
function caeliora_update_kirki_url_contents() {
	if ( 1 != get_option( 'caeliora_kirki_url_contents_cleared' ) ) {
		delete_transient( 'kirki_remote_url_contents' );
		update_option( 'caeliora_kirki_url_contents_cleared', 1 );
	}
}
add_action( 'init', 'caeliora_update_kirki_url_contents' );

