WordPress.org

Make WordPress Core

Changeset 5498


Ignore:
Timestamp:
05/21/2007 12:56:39 PM (14 years ago)
Author:
rob1n
Message:

Fix wp-ajax.js addArg's hashes. Props technosailor. fixes #4277

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/js/wp-ajax.js

    r4970 r5498  
    2828    },
    2929    addArg: function(key, value) {
    30         var a = [];
     30        var a = $H();
    3131        a[encodeURIComponent(key)] = encodeURIComponent(value);
    32         this.options.parameters = $H(this.options.parameters).merge($H(a));
     32        this.options.parameters = $H(this.options.parameters).merge(a);
    3333    },
    3434    getResponseElement: function(r) {
  • trunk/wp-includes/js/wp-ajax.js

    r4970 r5498  
    2828    },
    2929    addArg: function(key, value) {
    30         var a = [];
     30        var a = $H();
    3131        a[encodeURIComponent(key)] = encodeURIComponent(value);
    32         this.options.parameters = $H(this.options.parameters).merge($H(a));
     32        this.options.parameters = $H(this.options.parameters).merge(a);
    3333    },
    3434    getResponseElement: function(r) {
Note: See TracChangeset for help on using the changeset viewer.