[buddypress-trac] [BuddyPress] #4148: De-activating BP without changing theme first results in fatal error

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Apr 23 18:37:05 UTC 2012


#4148: De-activating BP without changing theme first results in fatal error
--------------------------+--------------------
 Reporter:  hnla          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  Theme         |     Version:  1.5.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by hnla):

 No longer sure my tests were valid as I seem not to be able to
 successfully deactivate BP and have theme switching run after all. The
 whole premise of trying to run this snippet of code from functions is
 dubious though we can't switch_theme if we have  exited from processing
 and that is overlooking the fact that functions.php is not being parsed if
 the plugin is deactivated?

 One thing I did note of interest? was that The Status theme had grabbed
 this section of code from functions.php for it's own functions.php yet in
 Status version we have switch_theme() run first then the check for
 bp_is_active() follows, and that is the way it would need to run, 'return'
 inline is effectively die()

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4148#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list