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  
    4646                } 
    4747                if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); } 
    4848                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>'); } 
    5151                return true; 
    5252        }, 
    5353        invalidateForm: function ( selector ) {