Changeset 5047
- Timestamp:
- 03/02/2017 03:25:04 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
r5045 r5047 13 13 add_filter( 'bbp_reply_admin_links', array( $this, 'admin_links' ), 10, 3 ); 14 14 15 // Gravatar suppression on lists of topics .15 // Gravatar suppression on lists of topics and revision logs. 16 16 add_filter( 'bbp_after_get_topic_author_link_parse_args', array( $this, 'get_author_link' ) ); 17 17 add_filter( 'bbp_after_get_reply_author_link_parse_args', array( $this, 'get_author_link' ) ); 18 add_filter( 'bbp_after_get_author_link_parse_args', array( $this, 'get_author_link' ) ); 18 19 19 20 // oEmbed. … … 91 92 92 93 /** 93 * Suppress Gravatars on lists of topics .94 * Suppress Gravatars on lists of topics and revision logs. 94 95 */ 95 96 public function get_author_link( $r ) { 96 if ( ! bbp_is_single_topic() || bbp_is_topic_edit() ) {97 if ( ! bbp_is_single_topic() || bbp_is_topic_edit() || wp_is_post_revision( $r['post_id'] ) ) { 97 98 $r['type'] = 'name'; 98 99 }
Note: See TracChangeset
for help on using the changeset viewer.