Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A pox on whosoever adds a radio input without a label! A mean, nasty,…

… itchy pox!
  • Loading branch information...
commit 8d6638f495d241585d266a41cec0a38304e7d138 1 parent 13a0ef5
@mjangda mjangda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  developer.php
View
2  developer.php
@@ -447,7 +447,7 @@ public function settings_field_radio( $args ) {
$selected = ( isset( $this->settings[ $args['name'] ] ) ) ? $this->settings[ $args['name'] ] : '';
foreach ( (array) $args['options'] as $value => $label )
- echo '<p><input type="radio" name="a8c_developer[' . esc_attr( $args['name'] ) . ']" value="' . esc_attr( $value ) . '"' . checked( $value, $selected, false ) . '> ' . $label . '</input></p>';
+ echo '<p><label><input type="radio" name="a8c_developer[' . esc_attr( $args['name'] ) . ']" value="' . esc_attr( $value ) . '"' . checked( $value, $selected, false ) . '> ' . $label . '</input></label></p>';
if ( ! empty( $args['description'] ) )
echo ' <p class="description">' . $args['description'] . '</p>';
Please sign in to comment.
Something went wrong with that request. Please try again.