Skip to content

Commit

Permalink
Prevent echoing of selected text on radio list
Browse files Browse the repository at this point in the history
  • Loading branch information
jom committed Jul 13, 2018
1 parent 794765a commit 0af671e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-wp-job-manager-writepanels.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function job_listing_metabox( $post ) {
foreach ( $terms as $term ) {
$id = $taxonomy . '-' . $term->term_id;
echo '<li id="' . esc_attr( $id ) . '"><label class="selectit">';
echo '<input type="radio" id="in-' . esc_attr( $id ) . '" name="' . esc_attr( $name ) . '" ' . checked( $current, $term->term_id ) . ' value="' . esc_attr( $term->term_id ) . '" />' . esc_attr( $term->name ) . '<br />';
echo '<input type="radio" id="in-' . esc_attr( $id ) . '" name="' . esc_attr( $name ) . '" ' . checked( $current, $term->term_id, false ) . ' value="' . esc_attr( $term->term_id ) . '" />' . esc_attr( $term->name ) . '<br />';
echo '</label></li>';
}
?>
Expand Down

0 comments on commit 0af671e

Please sign in to comment.