To prevent pebkac Closes #3628

This commit is contained in:
Mike Jolley 2013-08-13 17:26:21 +01:00
parent 64e1b091a0
commit 5c07464fd0
1 changed files with 3 additions and 0 deletions

View File

@ -1522,6 +1522,9 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
$args['maxlength'] = ( $args['maxlength'] ) ? 'maxlength="' . absint( $args['maxlength'] ) . '"' : '';
if ( is_string( $args['label_class'] ) )
$args['label_class'] = array( $args['label_class'] );
if ( is_null( $value ) )
$value = $args['default'];