Permalink
Browse files

Do not sanitize twice. Causing recursion memeory issues

  • Loading branch information...
jtsternberg committed Feb 20, 2014
1 parent 95c538b commit b82e2d997492fc66f669fed851c5e96dc9689a8c
Showing with 2 additions and 2 deletions.
  1. +2 −2 init.php
View
@@ -1025,9 +1025,9 @@ public static function update_option( $option_key, $field_id, $value, $field = a
if ( isset( $field['multiple'] ) && $field['multiple'] ) {
// If multiple, add to array
- self::$options[ $option_key ][ $field_id ][] = self::sanitization_cb( $value, $field );
+ self::$options[ $option_key ][ $field_id ][] = $value;
} else {
- self::$options[ $option_key ][ $field_id ] = self::sanitization_cb( $value, $field );
+ self::$options[ $option_key ][ $field_id ] = $value;
}
return self::$options[ $option_key ];

0 comments on commit b82e2d9

Please sign in to comment.