Ticket #2090: bp_admin_links.patch
File bp_admin_links.patch, 1.4 KB (added by , 12 years ago) |
---|
-
includes/topics/template-tags.php
2190 2190 return; 2191 2191 2192 2192 if ( empty( $r['links'] ) ) { 2193 $r['links'] = a rray(2193 $r['links'] = apply_filters( 'bbp_topic_admin_links', array( 2194 2194 'edit' => bbp_get_topic_edit_link ( $r ), 2195 2195 'close' => bbp_get_topic_close_link( $r ), 2196 2196 'stick' => bbp_get_topic_stick_link( $r ), 2197 2197 'merge' => bbp_get_topic_merge_link( $r ), 2198 2198 'trash' => bbp_get_topic_trash_link( $r ), 2199 2199 'spam' => bbp_get_topic_spam_link ( $r ), 2200 ) ;2200 ), $r['id'] ); 2201 2201 } 2202 2202 2203 2203 // Check caps for trashing the topic -
includes/replies/template-tags.php
1456 1456 1457 1457 // If no links were passed, default to the standard 1458 1458 if ( empty( $r['links'] ) ) { 1459 $r['links'] = a rray(1459 $r['links'] = apply_filters( 'bbp_reply_admin_links', array( 1460 1460 'edit' => bbp_get_reply_edit_link ( $r ), 1461 1461 'move' => bbp_get_reply_move_link ( $r ), 1462 1462 'split' => bbp_get_topic_split_link( $r ), 1463 1463 'trash' => bbp_get_reply_trash_link( $r ), 1464 1464 'spam' => bbp_get_reply_spam_link ( $r ), 1465 ) ;1465 ), $r['id'] ); 1466 1466 } 1467 1467 1468 1468 // Check caps for trashing the topic