0

I'm developing a theme for Envato. Got Soft Reject because of issue typed in the question title. I created a 4 column widget area for my theme's footer. How can I sanitize the $output variable?

Code Block

Thank you all.

  • And why do you use any buffering in there? – Krzysiek Dróżdż Apr 6 at 13:03
  • The main problem is sanitization it's not buffering. But is there another proper way to do the same? I'm calling in at footer.php. – Çağrı Özarpacı Apr 6 at 13:05
  • 1
    the main problem with such automatic tests is that they don’t understand the code. So in this case the problem is that your function returns HTML and you don’t sanitize anything. But on the other hand there is not much to sanitize... So there is a chance that it is a false positive caused by very original (not exactly in a good way) way of processing sidebars. – Krzysiek Dróżdż Apr 6 at 13:08
  • I fixed other sanitization & validation errors. Only this thing left. Will the reviewer ignore this sanitization warning? Thank your for attention. – Çağrı Özarpacı Apr 6 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.