Prevent naming conflict Closes #2530.

This commit is contained in:
Mike Jolley 2013-02-26 11:51:12 +00:00
parent daaec188d6
commit fa6fc063ed
1 changed files with 2 additions and 2 deletions

View File

@ -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 )