Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Popup warning while updating option from file

Open webangon opened this issue 9 years ago • 1 comments

The demo import works perfectly fine. But I have to update options. My approach..

    add_action('fw_settings_form_saved', array( $this, 'chiki_load_preset' ));	
 function chiki_load_preset(){
	$preset = fw_get_db_settings_option('preset', ''); 
	$data = unserialize(file_get_contents(get_template_directory().'/presets/2.txt'));
	update_option('use_balanceTags', $data);
} 

This update the option table nicely but shows this error in popup. capture

How to get rid of this error poup?

webangon avatar Mar 23 '17 19:03 webangon

my bad , I was echoing a variable . Works perfectly fine now .

webangon avatar Mar 23 '17 19:03 webangon