Changeset 6438 for trunk/src/includes/topics/capabilities.php
- Timestamp:
- 05/27/2017 05:04:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/capabilities.php
r6384 r6438 19 19 */ 20 20 function bbp_get_topic_caps() { 21 return apply_filters( 'bbp_get_topic_caps', array ( 21 22 // Filter & return 23 return (array) apply_filters( 'bbp_get_topic_caps', array ( 22 24 'edit_posts' => 'edit_topics', 23 25 'edit_others_posts' => 'edit_others_topics', … … 39 41 */ 40 42 function bbp_get_topic_tag_caps() { 41 return apply_filters( 'bbp_get_topic_tag_caps', array ( 43 44 // Filter & return 45 return (array) apply_filters( 'bbp_get_topic_tag_caps', array ( 42 46 'manage_terms' => 'manage_topic_tags', 43 47 'edit_terms' => 'edit_topic_tags', … … 225 229 } 226 230 227 return apply_filters( 'bbp_map_topic_meta_caps', $caps, $cap, $user_id, $args ); 231 // Filter & return 232 return (array) apply_filters( 'bbp_map_topic_meta_caps', $caps, $cap, $user_id, $args ); 228 233 } 229 234 … … 256 261 } 257 262 258 return apply_filters( 'bbp_map_topic_tag_meta_caps', $caps, $cap, $user_id, $args ); 259 } 263 // Filter & return 264 return (array) apply_filters( 'bbp_map_topic_tag_meta_caps', $caps, $cap, $user_id, $args ); 265 }
Note: See TracChangeset
for help on using the changeset viewer.