新增全局流水号
This commit is contained in:
@@ -12,6 +12,16 @@ if (!function_exists('sanitize_key')) {
|
||||
return strtolower((string) preg_replace('/[^a-z0-9_\-]/', '', $key));
|
||||
}
|
||||
}
|
||||
if (!function_exists('sanitize_text_field')) {
|
||||
function sanitize_text_field($value): string {
|
||||
return trim(strip_tags((string) $value));
|
||||
}
|
||||
}
|
||||
if (!function_exists('wp_timezone')) {
|
||||
function wp_timezone(): DateTimeZone {
|
||||
return new DateTimeZone('UTC');
|
||||
}
|
||||
}
|
||||
if (!function_exists('wp_json_encode')) {
|
||||
function wp_json_encode($value, int $flags = 0) {
|
||||
return json_encode($value, $flags);
|
||||
@@ -59,3 +69,4 @@ require_once dirname(__DIR__, 2) . '/src/Ledger/AssetAmount.php';
|
||||
require_once dirname(__DIR__, 2) . '/src/Ledger/LedgerCommand.php';
|
||||
require_once dirname(__DIR__, 2) . '/src/Ledger/LedgerResult.php';
|
||||
require_once dirname(__DIR__, 2) . '/src/Ledger/OperationKey.php';
|
||||
require_once dirname(__DIR__, 2) . '/src/Finance/BusinessNumber.php';
|
||||
|
||||
Reference in New Issue
Block a user