Escaping ACF fields

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.

Read More

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.

http://imgur.com/iKwnFGN.png

Related posts

Leave a Reply

1 comment

  1. Do they mean check the option variable is set?

        $footer_copyright = get_field('footer_copyright', 'options');
        if( $footer_copyright ) {
            echo esc_html($footer_copyright);
        }