Changeset 10908
- Timestamp:
- 04/15/2021 04:13:22 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r10604 r10908 74 74 // Limit no-replies view to a certain number of days and hide resolved topics. 75 75 add_filter( 'bbp_register_view_no_replies', array( $this, 'limit_no_replies_view' ) ); 76 77 // Remove the description from the CPT to avoid Jetpack using it as the og:description. 78 add_filter( 'bbp_register_forum_post_type', array( $this, 'bbp_register_forum_post_type' ) ); 76 79 77 80 // Display extra topic fields after content. … … 887 890 // Exclude closed/hidden/spam/etc topics. 888 891 $args['post_status'] = 'publish'; 892 893 return $args; 894 } 895 896 /** 897 * Remove the Forum CPT description field to prevent Jetpack using it as the og:description on /forums/. 898 */ 899 public function bbp_register_forum_post_type( $args ) { 900 $args['description'] = ''; 889 901 890 902 return $args;
Note: See TracChangeset
for help on using the changeset viewer.