Skip to content

Commit

Permalink
Doing strict compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Loisel committed Jun 15, 2015
1 parent 3642b64 commit 7119ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanitize-callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function vs_sanitize_checkbox($value, $setting, $args) {
* @return variable
*/
function vs_sanitize_text($value, $setting, $args) {
return ( $args['display_callback'] == 'vs_display_textarea' ) ? strip_tags( trim( $value ) ) : sanitize_text_field( $value );
return ( $args['display_callback'] === 'vs_display_textarea' ) ? strip_tags( trim( $value ) ) : sanitize_text_field( $value );
}

/**
Expand Down Expand Up @@ -64,7 +64,7 @@ function vs_sanitize_dropdown($value, $setting, $args) {
}

/**
*
*
* @param variable $value
* @return variable
*/
Expand Down

0 comments on commit 7119ff4

Please sign in to comment.