prefix . 'devis'; $migrated = get_option('devis_pro_migrated', false); $migration_count = get_option('devis_pro_migration_count', 0); $migration_errors = get_option('devis_pro_migration_errors', array()); // Résultat import CSV (traité via admin-post — pas de $_POST ici). $import_message = ''; $import_notice = get_transient( 'torlann_csv_import_notice_' . get_current_user_id() ); if ( is_array( $import_notice ) ) { delete_transient( 'torlann_csv_import_notice_' . get_current_user_id() ); if ( ! empty( $import_notice['success'] ) ) { $import_message = '
' . esc_html( sprintf( /* translators: %d: number of imported quotes */ __( '%d quotes imported successfully!', 'torlann' ), (int) ( $import_notice['count'] ?? 0 ) ) ) . '
' .
esc_html__( 'Warnings:', 'torlann' ) . '
' .
esc_html( implode( "\n", array_slice( $import_notice['errors'], 0, 10 ) ) ) .
'
' . esc_html( (string) ( $import_notice['message'] ?? __( 'Import failed.', 'torlann' ) ) ) . '