fallback title #1853

This commit is contained in:
Mike Jolley 2012-11-27 16:32:56 +00:00
parent bd9cee8eaa
commit dd1d41afa2
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ function woocommerce_admin_fields( $options ) {
foreach ( $options as $value ) {
if ( ! isset( $value['type'] ) ) continue;
if ( ! isset( $value['id'] ) ) $value['id'] = '';
if ( ! isset( $value['title'] ) ) $value['title'] = '';
if ( ! isset( $value['title'] ) ) $value['title'] = isset( $value['name'] ) ? $value['name'] : '';
if ( ! isset( $value['class'] ) ) $value['class'] = '';
if ( ! isset( $value['css'] ) ) $value['css'] = '';
if ( ! isset( $value['default'] ) ) $value['default'] = '';