Changeset 4330
- Timestamp:
- 11/06/2016 05:01:16 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
- Files:
-
- 2 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 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
r4129 r4330 12 12 // Remove query to get adjacent posts. 13 13 remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10 ); 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' ) );18 14 19 15 // Filters on pre_get_posts. … … 32 28 add_action( 'wp_ajax_wp-link-ajax', array( $this, 'disable_wp_link_ajax' ), -1 ); 33 29 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); 34 }35 36 /**37 * Remove unnecessary Gravatar display on lists of topics.38 */39 public function get_author_link( $r ) {40 if ( ! bbp_is_single_topic() || bbp_is_topic_edit() ) {41 $r['type'] = 'name';42 }43 return $r;44 30 } 45 31
Note: See TracChangeset
for help on using the changeset viewer.