Opened 19 years ago
Closed 19 years ago
#12 closed defect (fixed)
bbSync fails to globalize variables needed by bbPress
| Reported by: | mdawaffe | Owned by: | 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;
// ...
}
Note:
See TracTickets
for help on using tickets.

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