Support » Plugin: Theme and plugin translation for Polylang (TTfP) » esc_attr__() not recognized

  • Resolved fedenuche

    (@fedenuche)


    Thank You so much for this excellent plugin. You are doing a great job!

    I’m trying to use

    esc_attr_e

    and

    esc_attr__

    but it seems to not be recognized by the plugin (version 3.2.11).

    I wonder if you can add this to the next version.

    I don’t know if it helps, but the only thing that you should change is this regexp.

    [\s=\(\.]+esc_html[_e]*[\s]*\([\s]*[\’](.*?)[\’][\s]*[,]*[\s]*[\’]*(.*?)[\’]*[\s]*\)

    for this

    [\s=\(\.]+(esc_html|esc_attr)[_e]*[\s]*\([\s]*[\’](.*?)[\’][\s]*[,]*[\s]*[\’]*(.*?)[\’]*[\s]*\)

    • This topic was modified 11 months, 2 weeks ago by fedenuche.
    • This topic was modified 11 months, 2 weeks ago by fedenuche.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘esc_attr__() not recognized’ is closed to new replies.