[wp-trac] [WordPress Trac] #20998: the_content filter hooks are not called when $priority is greater than 11.

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 17 17:46:26 UTC 2012


#20998: the_content filter hooks are not called when $priority is greater than 11.
--------------------------+------------------------
 Reporter:  attosoft      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.4
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 The key is that shortcodes are themselves implemented by a filter added to
 'the_content'.

 So you're effectively calling `apply_filters( 'the_content' )` while
 'the_content' filter is being applied.

 This has been reported before: #17817

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20998#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list