From the course: WordPress: Internationalization

Unlock the full course today

Join today to access over 23,100 courses taught by industry experts.

Internationalization Security

Internationalization Security - WordPress Tutorial

From the course: WordPress: Internationalization

Internationalization Security

- [Instructor] Anytime you're writing code, security is an important consideration and internationalization is no exception. In this lesson, we'll look at some tips. For starters, if you're going to bundle locales provided by other translators, you'll want to check those strings for spam or malicious words. If you're not familiar with the translation language, you could use Google Translate to convert a translation into your native language so that you can compare the original strings to the translated strings just to make sure there's no spam or anything malicious. Next, you want to make sure to escape strings. It's one thing to include spammy translations, but it's another to actually add malicious code. To keep that from happening, you'll want to treat internationalized strings just like you would any other untrusted input. Say, like what a user might enter into a form. As another best practice, you'll want to avoid…

Contents