Fix wp-ajax.js addArg's hashes. Props technosailor. fixes #4277
git-svn-id: http://svn.automattic.com/wordpress/trunk@5498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69c2d56a31
commit
b83c9dae09
|
@ -27,9 +27,9 @@ Object.extend(WPAjax.prototype, {
|
|||
this.getResponseElement(responseEl);
|
||||
},
|
||||
addArg: function(key, value) {
|
||||
var a = [];
|
||||
var a = $H();
|
||||
a[encodeURIComponent(key)] = encodeURIComponent(value);
|
||||
this.options.parameters = $H(this.options.parameters).merge($H(a));
|
||||
this.options.parameters = $H(this.options.parameters).merge(a);
|
||||
},
|
||||
getResponseElement: function(r) {
|
||||
var p = $(r + '-p');
|
||||
|
|
Loading…
Reference in New Issue