From 82573225e089712b955c3de950030cf0d0f27be4 Mon Sep 17 00:00:00 2001 From: Roi Dayan Date: Sat, 2 May 2020 10:48:08 -0500 Subject: [PATCH] Use the id var in file type Instead of constructing it in the print call. Signed-off-by: Roi Dayan --- src/class.settings-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );