Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    today, I had almost the same issue and fixed it for my use case.

    @takayuki Miyoshi:
    My fix is probably not working correct or does not cover the whole issue. Anyway, it probably helps you fixing it:

    1.) shortcode.php => Function: get_shortcode_regex() Line 76:
    I replaced “(?:((?!.*?\[(?:” with “(?:((?!.*?\[\/(?:”
    After this fix, I received the complete content “[textarea] … [/textarea] in the function do_shortcode_tag()

    2.) formatting.php => Function wpcf7_autop() Line 35:
    I copied this line and pasted it with following adapted reg-ex: “/\[(script|style|textarea).*?\[\/\\1\]/s”
    Now all “\n” in “[textarea]” AND “<textarea> get replaced by <“WPPreserveNewline/>”.

    Following should work now:

    [textarea* textarea-962]
    blaabla blaa:
    blabla bla bla:
    [/textarea]

    Following still does not work correctly:

    [textarea* textarea-962]
    blaabla blaa:
    
    blabla bla bla:
    
    bla bla
    [/textarea]

    best wishes
    fabthe

Viewing 1 replies (of 1 total)