mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-15 13:52:57 +00:00
2.0.18
This commit is contained in:
@@ -311,16 +311,16 @@ class WC_API_Subscriptions extends WC_API_Orders {
|
||||
|
||||
if ( ! empty( $payment_method_meta ) ) {
|
||||
|
||||
foreach ( $payment_method_meta as $meta_table => &$meta ) {
|
||||
foreach ( $payment_method_meta as $meta_table => $meta ) {
|
||||
|
||||
if ( ! is_array( $meta ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ( $meta as $meta_key => &$meta_data ) {
|
||||
foreach ( $meta as $meta_key => $meta_data ) {
|
||||
|
||||
if ( isset( $payment_details[ $meta_table ][ $meta_key ] ) ) {
|
||||
$meta_data['value'] = $payment_details[ $meta_table ][ $meta_key ];
|
||||
$payment_method_meta[ $meta_table ][ $meta_key ]['value'] = $payment_details[ $meta_table ][ $meta_key ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user