Conflict with bbpress
-
Hi ??
First thank you for your plugin.I have one problem: when activating your plugin, it enters in conflict with the BBpress forum plugin.
here is the error:
Warning: in_array() expects parameter 2 to be array, null given in /mywebsite/www/wp-content/plugins/bbpress/includes/common/functions.php on line 1327
function bbp_query_post_parent__in( $where, $object = '' ) { global $wpdb, $wp; //line 1327 Noop if WP core supports this already if ( in_array( 'post_parent__in', $wp->private_query_vars ) ) return $where; // Bail if no object passed if ( empty( $object ) ) return $where; // Only 1 post_parent so return $where if ( is_numeric( $object->query_vars['post_parent'] ) ) return $where; // Including specific post_parent's if ( ! empty( $object->query_vars['post_parent__in'] ) ) { $ids = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__in'] ) ); $where .= " AND {$wpdb->posts}.post_parent IN ($ids)"; // Excluding specific post_parent's } elseif ( ! empty( $object->query_vars['post_parent__not_in'] ) ) { $ids = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__not_in'] ) ); $where .= " AND {$wpdb->posts}.post_parent NOT IN ($ids)"; } // Return possibly modified $where return $where; }
How can I fix this?
thank you ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conflict with bbpress’ is closed to new replies.