Make WordPress Core

Ticket #9602: classes.php.patch

File classes.php.patch, 434 bytes (added by obsidiandh, 17 years ago)

classes.php patch

Line 
1219,233c219
2<
3< preg_match_all('/\$(.*?)\[(.*?)\]/',$query,$subs);
4< $find=array();
5< $replace=array();
6<
7< foreach($subs[0] as $key=>$value)
8< {
9< $tmp=$subs[1][$key];
10< $tmp=$$tmp;
11< $tmp=$tmp[$subs[2][$key]];
12< $find[]=$subs[0][$key];
13< $replace[]=$tmp;
14< }
15<
16< $query=str_replace($find,$replace,$query);
17---
18> eval("@\$query = \"" . addslashes($query) . "\";");