[wp-hackers] shortcode_unautop
Chris McCoy
chris at lod.com
Wed Aug 21 19:09:28 UTC 2013
http://www.wpexplorer.com/clean-up-wordpress-shortcode-formatting/
have a look at this.
On 2013-08-21 11:40 AM, "Dobri" <dyordan1 at ramapo.edu> wrote:
>Hey WordPress Hackers,
>
>I was struggling with shortcode_unautop not working for a while and I
>looked into the function to figure out what's wrong. I've created a paste
>bin with the code in case you don't feel like finding the function
>(http://pastebin.com/VDMdXxj0). My question is: is there a reason some of
>the "*" repetitions also have a "+" directly following? I personally have
>done monsters of regular expressions and never seen the combination
>"[whatever]*+". Am I missing something? Also, when I checked with
>http://regexpal.com/, removing all the extra + signs magically made the
>function work *exactly* as expected. Is this a bug or do I not know regex
>as good as I though I do?
>
>Also, if there's nothing buggy with the function, what would be the way
>to make sure something like the text in the bin below renders correctly?
>
>http://pastebin.com/7kQwdjca
>
>Should I just remove the shorcode_unautop filter and do my own unautop?
>Thanks for any help with this!
>
>~Dobri
>
>_______________________________________________
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
>http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list