[wp-trac] [WordPress Trac] #23135: Filter for Block Elements in	wpautop()
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Jan  7 16:21:44 UTC 2013
    
    
  
#23135: Filter for Block Elements in wpautop()
-----------------------------------+-------------------------
 Reporter:  luehrsen               |       Type:  enhancement
   Status:  new                    |   Priority:  normal
Milestone:  Awaiting Review        |  Component:  Formatting
  Version:  trunk                  |   Severity:  normal
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+-------------------------
 This addresses the need to exclude certain block elements (iframe, img)
 from wpautop.  Using the newly defined filter '''wpautop_block_elements'''
 every plugin dev, theme dev etc. can redefine, modify and enhance the list
 of block elements.
 Exsample for functions.php
 {{{
 #!php
 function add_block_elements($block_elements){
         $block_elements[] = "iframe";
         $block_elements[] = "img";
         return $block_elements;
 }
 add_filter("wpautop_block_elements", add_block_elements);
 }}}
 Thanks for reviewing! :)
 Regards,
 Hendrik
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23135>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list