10, 'sanitize_text_field' => 10, 'wp_filter_kses' => 10, '_wp_specialchars' => 30 ); foreach ( $filters as $filter => $priority ) add_filter( 'bbp_pre_anonymous_post_author_name', $filter, $priority ); // Email saves foreach ( array( 'trim', 'sanitize_email', 'wp_filter_kses' ) as $filter ) add_filter( 'bbp_pre_anonymous_post_author_email', $filter ); // Save URL foreach ( array( 'trim', 'wp_strip_all_tags', 'esc_url_raw', 'wp_filter_kses' ) as $filter ) add_filter( 'bbp_pre_anonymous_post_author_website', $filter ); } bbp_pre_anonymous_filters(); /** * On multisite installations you must first allow themes to be activated and * show up on the theme selection screen. This function will let the bbPress * bundled themes show up and bypass this step. * * @since bbPress (r2944) * * @uses is_super_admin() To check if the user is site admin * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list */ function bbp_allowed_themes( $themes ) { // Only force bbp-twentyten theme for super admins if ( !is_super_admin() ) return $themes; $themes['bbp-twentyten'] = 1; return apply_filters( 'bbp_allowed_themes', $themes ); } add_filter( 'allowed_themes', 'bbp_allowed_themes' ); ?>