[wp-trac] [WordPress Trac] #16309: add_filter('the_content', 'myfunction') doesn't work when multi site.

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 19 19:35:52 UTC 2011


#16309: add_filter('the_content', 'myfunction') doesn't work when multi site.
--------------------------+-----------------------------
 Reporter:  matsubobo     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  minor         |   Keywords:  add_filter
--------------------------+-----------------------------
 I wrote simple plugin code to test the issue.
 {{{
 function myfunction($content) {
         $content = 'test'.$content;
         return $content;
 }
 add_filter('the_content', 'myfunction');
 }}}

 The code works single wordpress and main site when multi site setting.
 However, child-sites when multi site setting.

 WP 3.0 and 3.1 have same issue.

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


More information about the wp-trac mailing list