Ticket #6326: 6326.diff
| File 6326.diff, 0.8 kB (added by mdawaffe, 9 months ago) |
|---|
-
wp-includes/js/wp-ajax-response.js
old new 46 46 } 47 47 if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); } 48 48 x = parseInt(x,10); 49 if ( -1 == x ) { return !re.html('<div class="error"><p>' + this.noPerm + '</p></div>'); }50 else if ( 0 === x ) { return !re.html('<div class="error"><p>' + this.broken + '</p></div>'); }49 if ( -1 == x ) { return !re.html('<div class="error"><p>' + wpAjax.noPerm + '</p></div>'); } 50 else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken + '</p></div>'); } 51 51 return true; 52 52 }, 53 53 invalidateForm: function ( selector ) {
