[wp-trac] [WordPress Trac] #4277: bug in addArg() in wp-ajax.js
causes nothing to happen
WordPress Trac
wp-trac at lists.automattic.com
Wed May 16 16:34:27 GMT 2007
#4277: bug in addArg() in wp-ajax.js causes nothing to happen
----------------------------+-----------------------------------------------
Reporter: joetan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Administration | Version: 2.2
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
There is a bug in the addArg() in wp-includes/wp-ajax.js
on line 30, the variable a is basically incorrectly typed:
var a = [];
it should be instead:
var a = $H();
the function definition should be:
{{{
addArg: function(key, value) {
var a = $H();
a[encodeURIComponent(key)] = encodeURIComponent(value);
this.options.parameters = $H(this.options.parameters).merge(a);
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4277>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list