diff --git a/src/class.settings-api.php b/src/class.settings-api.php index 7cfe4b3..c45fcc4 100755 --- a/src/class.settings-api.php +++ b/src/class.settings-api.php @@ -369,7 +369,7 @@ function callback_file( $args ) { $id = $args['section'] . '[' . $args['id'] . ']'; $label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File' ); - $html = sprintf( '', $size, $args['section'], $args['id'], $value ); + $html = sprintf( '', $size, $id, $value ); $html .= ''; $html .= $this->get_field_description( $args );