From 4ad615a813bef446681b3ddac68d861ad2e44e3b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 21 Mar 2008 03:03:38 +0000 Subject: [PATCH] parseAjaxResponse fix from mdawaffe. fixes #6326 git-svn-id: https://develop.svn.wordpress.org/trunk@7436 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/wp-ajax-response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/wp-ajax-response.js b/wp-includes/js/wp-ajax-response.js index 56f8eb2449..95558536d2 100644 --- a/wp-includes/js/wp-ajax-response.js +++ b/wp-includes/js/wp-ajax-response.js @@ -46,8 +46,8 @@ wpAjax = jQuery.extend( { } if ( isNaN(x) ) { return !re.html('

' + x + '

'); } x = parseInt(x,10); - if ( -1 == x ) { return !re.html('

' + this.noPerm + '

'); } - else if ( 0 === x ) { return !re.html('

' + this.broken + '

'); } + if ( -1 == x ) { return !re.html('

' + wpAjax.noPerm + '

'); } + else if ( 0 === x ) { return !re.html('

' + wpAjax.broken + '

'); } return true; }, invalidateForm: function ( selector ) {