Re: Fatal Error Prior to Installation
Well, I don’t know, but since there’s a deregister view following the register view function maybe it’s not necessary.
function bb_register_view( $view, $title, $query_args = '' ) {
global $bb_views;
$view = bb_slug_sanitize( $view );
$title = wp_specialchars( $title );
if ( !$view || !$title )
return false;
$query_args = wp_parse_args( $query_args );
if ( !$sticky_set = isset($query_args['sticky']) )
$query_args['sticky'] = 'no';
$bb_views[$view]['title'] = $title;
$bb_views[$view]['query'] = $query_args;
$bb_views[$view]['sticky'] = !$sticky_set; // No sticky set => split into stickies and not
return $bb_views[$view];
}
function bb_deregister_view( $view ) {
global $bb_views;
$view = bb_slug_sanitize( $view );
if ( !isset($bb_views[$view]) )
return false;
unset($GLOBALS['bb_views'][$view]);
return true;
}
I’m in trouble if I ever need to create my own views or if the views that are being created in the default-filters.php page are ever used. But until I get a response from someone that knows what’s going on, I’m running bbPress without it register views.