Please do not use `window.sprintf`
-
This plugin appears to be using
window.sprintf
here:checkPassiveVoicePercentage: function(e) {
var t = r.getParagraphs(this.$wpbContentWrapper)
, t = r.getPassiveVoicePercentage(t)
, n = "problems"
, o = window.sprintf(i18nLocale.passiveVoiceError, t + "%");WordPress plugins should never rely on the
window
unless it’s to use native browser functions, as one never knows how other JS code is going to modify it. Please fix.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.