[wp-hackers] wp_magic_quotes makes me sad panda

Otto otto at ottodestruct.com
Tue Sep 28 22:14:59 UTC 2010


On Tue, Sep 28, 2010 at 4:53 PM, Lox <lox.dev at knc.nc> wrote:
> 2010/9/27 Gavin Lambert <wphack at mirality.co.nz>
>
>> 5. Magic quotes are deprecated (and disabled by default) in PHP 5
>
>
> Hi,
>
> That makes me ask: why is Wordpress adding magic quotes whereas it has been
> recognized to be a "bad practice" in PHP development ?

Older plugins that relied on magic quotes may suddenly break if WP
starts returning non-MQ values. This could open security issues.

Maybe they'll eliminate magic quotes in WP 4.0. And only allow plugins
that declare themselves 4.0 compatible to be loaded. ;)

-Otto


More information about the wp-hackers mailing list