mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
parseAjaxResponse fix from mdawaffe. fixes #6326
git-svn-id: https://develop.svn.wordpress.org/trunk@7436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -46,8 +46,8 @@ wpAjax = jQuery.extend( {
|
||||
}
|
||||
if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); }
|
||||
x = parseInt(x,10);
|
||||
if ( -1 == x ) { return !re.html('<div class="error"><p>' + this.noPerm + '</p></div>'); }
|
||||
else if ( 0 === x ) { return !re.html('<div class="error"><p>' + this.broken + '</p></div>'); }
|
||||
if ( -1 == x ) { return !re.html('<div class="error"><p>' + wpAjax.noPerm + '</p></div>'); }
|
||||
else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken + '</p></div>'); }
|
||||
return true;
|
||||
},
|
||||
invalidateForm: function ( selector ) {
|
||||
|
||||
Reference in New Issue
Block a user