Make WordPress Core

Ticket #50320: ajax-response.js.patch

File ajax-response.js.patch, 681 bytes (added by ankitmaru, 5 years ago)
  • src/js/_enqueues/lib/ajax-response.js

     
    5151                }
    5252                if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); }
    5353                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>'); }
    5555                else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken  + '</p></div>'); }
    5656                return true;
    5757        },