Ticket #50320: ajax-response.js.patch
File ajax-response.js.patch, 681 bytes (added by , 5 years ago) |
---|
-
src/js/_enqueues/lib/ajax-response.js
51 51 } 52 52 if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); } 53 53 x = parseInt(x,10); 54 if ( -1 == x ) { return !re.html('<div class="error"><p>' + wpAjax.noPerm + '</p></div>'); }54 if ( -1 === x ) { return !re.html('<div class="error"><p>' + wpAjax.noPerm + '</p></div>'); } 55 55 else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken + '</p></div>'); } 56 56 return true; 57 57 },