From b83c9dae0900af4c816b9d7853f8c7e8bbaa4dcd Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 21 May 2007 12:56:39 +0000 Subject: [PATCH] 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 --- wp-includes/js/wp-ajax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/wp-ajax.js b/wp-includes/js/wp-ajax.js index cc3bb5a4b1..e3f63f7a48 100644 --- a/wp-includes/js/wp-ajax.js +++ b/wp-includes/js/wp-ajax.js @@ -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');