[wp-hackers] 1.5.1.3 XMLRPC problems

Ryan Boren ryan at boren.nu
Wed Jun 29 16:34:19 GMT 2005


On Wed, 2005-06-29 at 12:27 -0400, Owen Winkler wrote:
> Robert Deaton wrote:
> > I confirmed the problem, and have a fix that Works For Me (tm). Testing, anyone?
> 
> Seems like instead of this patch, the function in wp-db.php could be fixed:
> 
> function escape($str) {
> 	if(is_array($str)) return array_map('addslashes', $str);
> 	return addslashes($str);				
> }

Well, it's setup to always take an array because it is intended to be
used on the entire $args array, not individual elements.

Ryan



More information about the wp-hackers mailing list