Changeset 4970
- Timestamp:
- 02/21/2017 01:50:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r4944 r4970 10 10 11 11 // Display-related filters and actions. 12 add_filter( 'bbp_ get_topic_admin_links', array( $this, 'get_admin_links' ), 10, 3 );13 add_filter( 'bbp_ get_reply_admin_links', array( $this, 'get_admin_links' ), 10, 3 );12 add_filter( 'bbp_topic_admin_links', array( $this, 'admin_links' ), 10, 3 ); 13 add_filter( 'bbp_reply_admin_links', array( $this, 'admin_links' ), 10, 3 ); 14 14 15 15 // Gravatar suppression on lists of topics. … … 46 46 * permanently delete it when the trash is emptied. Better to mark it as 47 47 * pending or spam. 48 */ 49 public function get_admin_links( $retval, $r, $args ) { 50 unset( $r['links']['trash'] ); 51 52 $links = implode( $r['sep'], array_filter( $r['links'] ) ); 53 $retval = $r['before'] . $links . $r['after']; 54 55 return $retval; 48 * 49 * @param array $r Admin links array. 50 * @param int $post_id Topic or reply ID. 51 * @return array Filtered admin links array. 52 */ 53 public function admin_links( $r, $post_id ) { 54 unset( $r['trash'] ); 55 56 return $r; 56 57 } 57 58
Note: See TracChangeset
for help on using the changeset viewer.