Hotfix #1924

Hi Scott,
This pull request solves the notice with buddy press plugin. Also corrects the initialization issue with theme_setup action, I think its no longer supposed to be used, instead after_theme_setup action is supposed to replace it, http://codex.wordpress.org/Plugin_API/Action_Reference