From fa6fc063ed5e990239c455442d9ad267614749d9 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 26 Feb 2013 11:51:12 +0000 Subject: [PATCH] Prevent naming conflict Closes #2530. --- woocommerce-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woocommerce-template.php b/woocommerce-template.php index 41980db48a3..099e010315c 100644 --- a/woocommerce-template.php +++ b/woocommerce-template.php @@ -1296,8 +1296,8 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { $custom_attributes = array(); if ( ! empty( $args['custom_attributes'] ) && is_array( $args['custom_attributes'] ) ) - foreach ( $args['custom_attributes'] as $attribute => $value ) - $custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; + foreach ( $args['custom_attributes'] as $attribute => $attribute_value ) + $custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"'; if ( ! empty( $args['validate'] ) ) foreach( $args['validate'] as $validate )