WordPress.org

Make WordPress Core

Ticket #18026: stripslashes.diff

File stripslashes.diff, 362 bytes (added by knutsp, 3 years ago)

Only stripslash strings (and arrays, objects)

  • formatting.php

     
    12381238                foreach ($vars as $key=>$data) { 
    12391239                        $value->{$key} = stripslashes_deep( $data ); 
    12401240                } 
    1241         } else { 
     1241        } elseif ( is_string($value) ) { 
    12421242                $value = stripslashes($value); 
    12431243        } 
    12441244