fix: Update version to 1.2.5 and correct supplier meta key in supplier exports

This commit is contained in:
2026-01-10 16:08:12 +00:00
parent 08551e0013
commit e7e757f0cd
2 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
class Siti_Stock_Supplier_Exports {
const CRON_HOOK = 'siti_stock_plugin_supplier_export';
const SUPPLIER_META_KEY = '_wpbc_supplier';
const SUPPLIER_META_KEY = '_wpci_supplier';
/**
* @var Siti_Stock_Settings
@@ -258,7 +258,7 @@ class Siti_Stock_Supplier_Exports {
$body_lines[] = $csv;
$headers = array( 'Content-Type: text/plain; charset=UTF-8' );
$sent = wp_mail( $admin_email, $subject, implode( "\n", $body_lines ), $headers );
$sent = wp_mail( $admin_email, $subject, implode( "\r\n", $body_lines ), $headers );
if ( ! $sent ) {
return new WP_Error( 'siti_stock_mail_failed', __( 'E-mail verzenden is mislukt.', 'siti-stock-plugin' ) );
@@ -439,7 +439,7 @@ class Siti_Stock_Supplier_Exports {
$lines[] = sprintf( '%s;%d', $sku, $quantity );
}
return implode( "\n", $lines );
return implode( "\r\n", $lines );
}
/**