Fix empty query vars being passed as 'true' instead of ''. See #14579

git-svn-id: https://develop.svn.wordpress.org/trunk@16363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-14 00:48:30 +00:00
parent 39eca2466e
commit cd7d748a0e
3 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -45,7 +45,8 @@ window.listTable = {
if ( this.loading )
return false;
var different = false, data;
var different = false
data = {};
$.each(args, function(key, val) {
if ( val != $.query.GET(key) ) {
@@ -62,7 +63,12 @@ window.listTable = {
if ( reset_paging )
$.query.SET('paged', 1);
data = $.query.get();
$.each( $.query.get(), function(key, value) {
if ( true === value )
data[key] = '';
else
data[key] = value;
});
this._callback = callback;