We've had to (temporarily) disable the theme filter because it was causing issues on some installations. We'lltrytogetitworkingagaininafutureupdate.
</div>
<?php}?>
<p><?phpechosprintf(esc_html__('Prevent certain %s from updating automatically. %s that you select here will be skipped by Companion Auto Update and will require manual updating.','companion-auto-update'),strtolower($filter_name),$filter_name);?></p>
<?php
global$wpdb;
$table_name=$wpdb->prefix."auto_updates";
// Save list
if(isset($_POST['submit'])){
check_admin_referer('cau_save_pluginlist');
$noUpdateList='';
$i=0;
$noUpdateCount=0;
if(isset($_POST['post'])){
$noUpdateCount=count($_POST['post']);
}
if($noUpdateCount>0){
foreach($_POST['post']as$key){
$noUpdateList.=sanitize_text_field($key);
$i++;
if($i!=$noUpdateCount)$noUpdateList.=', ';
}
}
$wpdb->query($wpdb->prepare("UPDATE $table_name SET onoroff = '%s' WHERE name = '%s'",$noUpdateList,$db_table));
echo'<div id="message" class="updated"><p><b>'.__('Succes','companion-auto-update').' –</b> '.sprintf(esc_html__('%1$s %2$s have been added to the no-update-list','companion-auto-update'),$noUpdateCount,strtolower($filter_name)).'.</p></div>';
}
// Reset list
if(isset($_POST['reset'])){
check_admin_referer('cau_save_pluginlist');
$wpdb->query($wpdb->prepare("UPDATE $table_name SET onoroff = '%s' WHERE name = %s","",$db_table));
echo'<div id="message" class="updated"><p><b>'.__('Succes','companion-auto-update').' –</b> '.sprintf(esc_html__('The no-update-list has been reset, all %s will be auto-updated from now on','companion-auto-update'),strtolower($filter_name)).'.</p></div>';