[wp-meta] [Making WordPress.org] #2590: Enhance compatibility with per forum moderators

Making WordPress.org noreply at wordpress.org
Sat Mar 18 14:47:29 UTC 2017


#2590: Enhance compatibility with per forum moderators
----------------------------+-----------------
 Reporter:  ocean90         |      Owner:
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:
Component:  Support Forums  |   Keywords:
----------------------------+-----------------
 bbPress 2.6 [https://bbpress.org/forums/topic/bbpress-2-6-beta/ supports
 per forum moderators]. This is handled in `bbp_map_primary_meta_caps()`.
 But the
 [https://bbpress.trac.wordpress.org/browser/trunk/src/includes/users/capabilities.php?marks=71-74&rev=6294#L67
 additional checks are not done if no post ID] is passed to the
 `WP_User::has_cap()` check.

 * In `Topic_Resolution\Plugin::user_can_resolve()` we can use the existing
 `$topic_id` variable.
 * In `User_Badges\Plugin::is_user_moderator()` using
 `get_queried_object_id()` seems to work.
 * Also affected: `Stickies_Compat` and user flagging in `User_Moderation`.

 Noticed this while checking how this actually works because
 @danielbachhuber
 [https://wordpress.slack.com/archives/C02RRH4GA/p1489788446950096
 requested this].

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2590>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list