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

Marvin Luginbill spooky at metalink.net
Thu Sep 6 20:40:18 UTC 2012



From: Japheth Thomson 
Sent: Wednesday, September 05, 2012 10:48 PM
To: theme-reviewers at lists.wordpress.org 
Subject: Re: [theme-reviewers] Adding warnings to Theme-Check for remove_filter on wpautop and wptexturize

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





--------------------------------------------------------------------------------
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20120906/cce4d917/attachment.htm>


More information about the theme-reviewers mailing list