﻿id	summary	reporter	owner	description	type	status	priority	component	resolution	keywords	cc
12	bbSync fails to globalize variables needed by bbPress	mdawaffe	fel64	"In {{{felsyncpost()}}}, bbSync does:

{{{
require_once( $opshuns['bbpath'] );
}}}

That require is in the scope of the above function, and so some bbPress globals don't actually get globalized.  This results in a fatal error when publishing posts.

It's possible bbPress can address some of this in core, but bbSync can fix itself for now by adding some variables to the global statement in {{{felsyncpost()}}}.

{{{
function felsyncpost( $post_id ) {
   global $bbdb, $wpdb, $current_user, $bb_cache, $bb_roles;
   // ...
}
}}}"	defect	closed	normal	bbsync	fixed		
