• Hello,
    I get the following Recommendation message from theme-check plugin:

    RECOMMENDED: Possible variable $options found in translation function in theme-options.php. Translation function calls must NOT contain PHP variables.

    Here’s the code generating above warning:
    <textarea id='options[random-text]' cols='50' rows='30' name='options[random-text]'><?php if (!empty($options['random-text'])) esc_attr_e($options['random-text']); ?></textarea>

    As the esc_attr_e is causing the problem, would it be safe (from security point of view) to remove the esc_attr_e ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘esc_attr_e causing warning in theme-check’ is closed to new replies.