Skip to content

Commit edb418b

Browse files
committed
Remove redundant var from checkbox sprintf
The var $value was not used and can be removed from the call. Signed-off-by: Roi Dayan <roi.dayan@gmail.com>
1 parent a5b6393 commit edb418b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.settings-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function callback_checkbox( $args ) {
172172
$value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
173173

174174
$html = sprintf( '<input type="hidden" name="%1$s[%2$s]" value="off" />', $args['section'], $args['id'] );
175-
$html .= sprintf( '<input type="checkbox" class="checkbox" id="wpuf-%1$s[%2$s]" name="%1$s[%2$s]" value="on"%4$s />', $args['section'], $args['id'], $value, checked( $value, 'on', false ) );
175+
$html .= sprintf( '<input type="checkbox" class="checkbox" id="wpuf-%1$s[%2$s]" name="%1$s[%2$s]" value="on" %3$s />', $args['section'], $args['id'], checked( $value, 'on', false ) );
176176
$html .= sprintf( '<label for="wpuf-%1$s[%2$s]"> %3$s</label>', $args['section'], $args['id'], $args['desc'] );
177177

178178
echo $html;

0 commit comments

Comments
 (0)