[buddypress-trac] [BuddyPress] #4195: functions tied to "init" action do not run

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue May 8 18:24:08 UTC 2012


#4195: functions tied to "init" action do not run
--------------------------+-----------------------------
 Reporter:  dbvista       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.5.5
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 We’re running WordPress 3.3.2. After upgrading BuddyPress to 1.5.5, some
 of the functions in our WordPress plugins have stopped running if they
 hook WordPress’s “init” action. For example, in this code:

 {{{

 error_log("one");
 function foo() {
   error_log("two");
 }
 add_action("init", "foo");
 error_log("three");

 }}}

 the strings “one” and “three” get written to the error log (proving that
 the PHP file is being loaded), but “two” never happens. This problem is
 also mentioned on StackOverflow:

 http://stackoverflow.com/questions/9895881/buddypress-wiki-component-
 action-on-init-not-called

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4195>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list