We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a03633e commit 4ba7f0eCopy full SHA for 4ba7f0e
src/Bonnier/WP/BBPress/BetterPermalinks/Permalinks.php
@@ -47,7 +47,7 @@ public static function add_post_types_rewrite($postType, $args)
47
'index.php?forumnames=$matches[1]&name=$matches[2]&post_type='.$postType,
48
'top'
49
);
50
- add_permastruct($postType, bbp_get_forum_slug()."%forumnames%".bbp_get_topic_slug()."/%postname%/", $args->rewrite);
+ add_permastruct($postType, bbp_get_forum_slug()."%forumnames%".get_option( '_bbp_topic_slug', 'topic' )."/%postname%/", $args->rewrite);
51
static::flush_rewrite_rules_if_needed();
52
break;
53
}
0 commit comments