[theme-reviewers] Adding warnings to Theme-Check for remove_filter on wpautop and wptexturize

Japheth Thomson japh at envato.com
Thu Sep 6 02:48:35 UTC 2012


Interesting! I hadn't found that yet. Does this mean there's actually a
mechanism already built-in for this that theme developers who need to avoid
autop-ing a shortcode can use instead of the technique they're using now?


On 6 September 2012 12:32, Daniel Tara <contact at onedesigns.com> wrote:

> Apparently there's a shortcode_unautop filter, wpincludes/formatting.php
> line 282:
>
> http://core.trac.wordpress.org/browser/trunk/wp-includes/formatting.php
>
> On Sep 6, 2012, at 5:09 AM, Michael Fields wrote:
>
> +1 for warning.
>
> It's rare that a theme should ever have to remove wpautop from the_content.
>
> I've done something similar with the_excerpt before though:
> https://github.com/mfields/nighthawk/blob/master/loop-search.php
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>


-- 
Japh Thomson
WordPress Evangelist
japh at envato.com
http://envato.com
http://twitter.com/envato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120906/15fb1e9a/attachment.htm>


More information about the theme-reviewers mailing list