[wp-trac] [WordPress Trac] #10275: Filter logic has been put into the template loader while it not belongs there.

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 25 20:22:34 GMT 2009


#10275: Filter logic has been put into the template loader while it not belongs
there.
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  General       |     Version:  2.8        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 Some time ago, filter logic has been introduced in the template-loader.
 Looks like a fix for the inability to handle attachments propperly (WP
 misses more and more a strict request parsing so that newer features tend
 to introduce more and more bugs).

 The code has not been removed yet. It should be removed there or put into
 a more appropriate location.

 The code in question is:

 {{{
 remove_filter('the_content', 'prepend_attachment');
 }}}

 in /wp-inclueds/template-loader.php around line 30.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10275>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list