Changeset 9824 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
- Timestamp:
- 05/05/2020 01:52:18 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-profiles-wp-activity-notifier/wporg-profiles-wp-activity-notifier.php
r6265 r9824 45 45 add_action( 'bbp_approved_topic', array( $this, 'notify_forum_new_topic' ) ); 46 46 add_action( 'bbp_unapproved_topic', array( $this, 'notify_forum_remove_topic' ) ); 47 add_action( 'wporg_bbp_archived_topic', array( $this, 'notify_forum_remove_topic' ) ); 47 48 48 49 // bbPress 2.x reply support … … 54 55 add_action( 'bbp_trashed_reply', array( $this, 'notify_forum_remove_reply' ) ); 55 56 add_action( 'bbp_untrashed_reply', array( $this, 'notify_forum_new_reply' ) ); 57 add_action( 'wporg_bbp_archived_reply', array( $this, 'notify_forum_remove_reply' ) ); 56 58 } 57 59 … … 132 134 133 135 $content = wp_trim_words( 134 ( has_excerpt( $post ) ? $post->post_excerpt : $post->post_content ),136 strip_shortcodes( has_excerpt( $post ) ? $post->post_excerpt : $post->post_content ), 135 137 55 136 138 ); … … 263 265 'topic_id' => $topic_id, 264 266 'forum_id' => bbp_get_topic_forum_id( $topic_id ), 265 'title' => bbp_get_topic_title( $topic_id),267 'title' => strip_tags( bbp_get_topic_title( $topic_id ) ), 266 268 'url' => bbp_get_topic_permalink( $topic_id ), 267 269 'message' => bbp_get_topic_excerpt( $topic_id, 55 ), … … 331 333 'topic_id' => bbp_get_reply_topic_id( $reply_id ), 332 334 'forum_id' => bbp_get_reply_forum_id( $reply_id ), 333 'title' => bbp_get_reply_topic_title( $reply_id ),335 'title' => strip_tags( bbp_get_reply_topic_title( $reply_id ) ), 334 336 'url' => bbp_get_reply_url( $reply_id ), 335 337 'message' => $this->get_reply_excerpt( $reply_id, 15 ), … … 401 403 402 404 // Strip tags and surrounding whitespace. 403 $text = trim ( strip_tags( $text ) ); 405 $text = trim( strip_tags( $text ) ); 406 407 // Strip shortcodes. 408 if ( function_exists( 'strip_shortcodes' ) ) { 409 $text = strip_shortcodes( $text ); 410 } 404 411 405 412 // If trimming by chars, behave like a more multibyte-aware
Note: See TracChangeset
for help on using the changeset viewer.