Update from Git Manager GUI
This commit is contained in:
@@ -103,6 +103,7 @@ class WBF_Export {
|
||||
case 'settings':
|
||||
$data['settings'] = get_option( 'wbf_settings', [] );
|
||||
$data['profile_fields'] = get_option( 'wbf_profile_fields', [] );
|
||||
$data['profile_field_cats'] = get_option( 'wbf_profile_field_cats', [] );
|
||||
$data['reactions_cfg'] = get_option( 'wbf_reactions', [] );
|
||||
$data['word_filter'] = get_option( 'wbf_word_filter', '' );
|
||||
break;
|
||||
@@ -275,6 +276,7 @@ class WBF_Export {
|
||||
}
|
||||
if ( isset( $data['profile_fields'] ) ) {
|
||||
update_option( 'wbf_profile_fields', $data['profile_fields'] );
|
||||
if ( isset($data['profile_field_cats']) ) update_option( 'wbf_profile_field_cats', $data['profile_field_cats'] );
|
||||
$log[] = '✅ Profilfeld-Definitionen (' . count( $data['profile_fields'] ) . ') importiert.';
|
||||
}
|
||||
if ( isset( $data['reactions_cfg'] ) && is_array( $data['reactions_cfg'] ) ) {
|
||||
@@ -1172,7 +1174,7 @@ class WBF_Export {
|
||||
/** Prüft ob eine Tabelle existiert */
|
||||
private static function table_exists( string $table ): bool {
|
||||
global $wpdb;
|
||||
return $wpdb->get_var( "SHOW TABLES LIKE '$table'" ) === $table;
|
||||
return $wpdb->get_var( $wpdb->prepare( "SHOW TABLES LIKE %s", $table ) ) === $table;
|
||||
}
|
||||
|
||||
/** Erstellt ein standardisiertes Ergebnis-Array */
|
||||
|
||||
Reference in New Issue
Block a user