Please do not use `window.sprintf`
-
This plugin appears to be using
window.sprintfhere: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
windowunless 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)
The topic ‘Please do not use `window.sprintf`’ is closed to new replies.