[wp-meta] [Making WordPress.org] #8221: Remove irrelevant “tags” field from support forum review forms
Making WordPress.org
noreply at wordpress.org
Tue Apr 7 02:21:05 UTC 2026
#8221: Remove irrelevant “tags” field from support forum review forms
----------------------------+---------------------
Reporter: bor0 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Support Forums | Resolution:
Keywords: has-patch |
----------------------------+---------------------
Comment (by dd32):
@bor0 observations:
- `bbp_*` is a bbPress filter, but this is a custom filter. I suggest
using `wporg_bbp_` instead. existing bbp_ uses within the file are because
the template is copied from bbPress.
- `add_filter( 'bbp_topic_form_show_tags', array( $this,
'hide_topic_form_tags' ) );` having these be negated reads weirdly, I'd
rename the function to 'show_topic_form_tags' instead, returning false
explicitly for reviews.
- `'reviews' === bbp_get_view_id()` exists within one of your branches
where you're hiding it, so it's a little obtuse why it's there.
Finally; `bbp_allow_topic_tags()` has a filter (named
`bbp_allow_topic_tags`).. so this is duplicating that needlessly :)
I would:
- Remove the `'reviews' === bbp_get_view_id()` branch and just have Topic
Tags string
- Use the `bbp_allow_topic_tags` filter
- Wrap the unwrapped code in `bbp_allow_topic_tags()`
I might've missed why you didn't go that route though, as I know there's
some globals that can be weird in bbPress.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/8221#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list