Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/27/2017 05:18:35 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Moderators: Another performance optimization in bbp_is_user_forum_moderator().

Use bbp_is_object_of_user() directly, and clean-up local variable reassignments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/functions.php

    r6400 r6407  
    197197 * @param string $meta_type The relationship type
    198198 *
    199  * @uses bbp_is_object_of_user() To check if the term has already been set
    200199 * @uses add_post_meta() To set the term on the object
    201200 * @uses apply_filters() Calls 'bbp_add_user_to_object' with the object id, user
     
    220219 * @param string $meta_type The relationship type
    221220 *
    222  * @uses bbp_is_object_of_user() To check if the term is set
    223221 * @uses delete_post_meta() To remove the term from the object
    224222 * @uses apply_filters() Calls 'bbp_remove_user_from_object' with the object
Note: See TracChangeset for help on using the changeset viewer.