Commit 30a5c39b authored by lucha's avatar lucha

better visual feedback

parent 16d34aab
Pipeline #1531 passed with stages
in 1 minute and 2 seconds
......@@ -24,10 +24,13 @@ function do_wp_piwik_clear_config($args){
echo "Clearing options for wp-piwik for blog {$arg}\n";
foreach ($wp_piwik_options_to_delete as $opt) {
if (get_option($opt))
if (get_option($opt)){
echo "Deleting option {$opt}"
delete_option($opt);
}
}
foreach ($wp_piwik_options_to_blank as $opt) {
echo "Clearing option {$opt}"
update_option($opt,'');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment