Skip to content

Commit

Permalink
add validation for link_color
Browse files Browse the repository at this point in the history
  • Loading branch information
bueltge committed Sep 9, 2012
1 parent 539cf57 commit 28347ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/theme-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ public function validate( $input ) {
if ( isset( $input['text_color'] ) && ! empty( $input['text_color'] ) )
$output['text_color'] = wp_filter_nohtml_kses( $input['text_color'] );

if ( isset( $input['link_color'] ) && ! empty( $input['link_color'] ) )
$output['link_color'] = wp_filter_nohtml_kses( $input['link_color'] );

return apply_filters( $this->theme_key . '_options_validate', $output, $input, $defaults );
}

Expand Down

0 comments on commit 28347ab

Please sign in to comment.