• Joe

    (@nammourdesigns)


    Hi,
    I have was not able to use your plugin because I have a site on a server that does a code review using PHP Code Sniffer first. I just wanted to let you know that some errors came back that I think would be pretty easy to solve. In multiple places this is the error we are seeing:

    All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks)

    an example location would be on lines 281 – 284 of plugins/wp-mail-smtp/src/Admin/Pages/SettingsTab.php

Viewing 1 replies (of 1 total)
  • Hi @nammourdesigns,

    Please note that all outputs are already run through escaping function, not at the exact line you’ve mentioned but the strings are safe to output there. Here is an example of where the description of the mailer (the line of code in question) is escaped. For more information on wp_kses(), please see the documentation.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Errors in the plugin’ is closed to new replies.