Reputation: 77
My theme has been soft rejected many times in Themeforest for this reason.
"" 1. Data Validation issues have been found in your theme. All dynamic data must be correctly escaped for the context where it is rendered.
Please perform a global search for "echo $" and you will see several issues. You need to escape the variable for this field. http://envato.d.pr/zpIy/480pfq95
""
I dont what to escape here anymore, there is only one echo, but this time envato reviewer send me the example below with the field from the acf, should be ACF escaped? If yes how it should be.
https://i.sstatic.net/OPWEG.png
Upvotes: 1
Views: 2057
Reputation: 1089
Do they mean check the option variable is set?
$footer_copyright = get_field('footer_copyright', 'options');
if( $footer_copyright ) {
echo esc_html($footer_copyright);
}
Upvotes: 2