mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix wp-ajax.js addArg's hashes. Props technosailor. fixes #4277
git-svn-id: https://develop.svn.wordpress.org/trunk@5498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user