[wp-trac] Re: [WordPress Trac] #5015: Add_Filter priority fails
with some hooks
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 22 23:22:53 GMT 2007
#5015: Add_Filter priority fails with some hooks
-------------------------------+--------------------------------------------
Reporter: mattyrob | Owner: anonymous
Type: defect | Status: closed
Priority: high | Milestone:
Component: General | Version: 2.3
Severity: normal | Resolution: worksforme
Keywords: plugin add_filter |
-------------------------------+--------------------------------------------
Comment (by markjaquith):
Ah, that's because wpautop() (which turns line breaks into paragraphs) is
a filter on the_content with a priority of 10. So before that (1-9),
you're dealing with line breaks. After that (11 and up), you'll have
paragraph tags.
--
Ticket URL: <http://trac.wordpress.org/ticket/5015#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list