Ticket #12 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

bbSync fails to globalize variables needed by bbPress

Reported by: mdawaffe Assigned to: fel64
Priority: normal Component: bbsync
Keywords: Cc:

Description

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;
   // ...
}

Change History

12/27/07 18:20:44 changed by fel64

  • status changed from new to closed.
  • resolution set to fixed.

Cheers. Wouldn't have caught that without your help.