Skip to content

Commit

Permalink
fix color validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 29, 2014
1 parent 14baf2e commit fc74770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-Shoestrap_Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static function sanitize_hex( $color ) {
$color = str_replace( '#', '', $color );

// Check if this is a valid hex color
if ( empty( $color ) || ctype_xdigit( $color ) ) {
if ( empty( $color ) || ! ctype_xdigit( $color ) ) {
return '#ffffff';
}

Expand Down

0 comments on commit fc74770

Please sign in to comment.