Changeset 4330 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 11/06/2016 05:01:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r4181 r4330 12 12 add_filter( 'bbp_get_topic_admin_links', array( $this, 'get_admin_links' ), 10, 3 ); 13 13 add_filter( 'bbp_get_reply_admin_links', array( $this, 'get_admin_links' ), 10, 3 ); 14 15 // Gravatar suppression on lists of topics. 16 add_filter( 'bbp_after_get_topic_author_link_parse_args', array( $this, 'get_author_link' ) ); 17 add_filter( 'bbp_after_get_reply_author_link_parse_args', array( $this, 'get_author_link' ) ); 14 18 15 19 // oEmbed. … … 33 37 34 38 return $retval; 39 } 40 41 /** 42 * Suppress Gravatars on lists of topics. 43 */ 44 public function get_author_link( $r ) { 45 if ( ! bbp_is_single_topic() || bbp_is_topic_edit() ) { 46 $r['type'] = 'name'; 47 } 48 return $r; 35 49 } 36 50
Note: See TracChangeset
for help on using the changeset viewer.