Changeset 12125 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php
- Timestamp:
- 10/13/2022 06:41:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php
r12012 r12125 67 67 68 68 // Notify subscribers when a topic or reply with a given term is added. 69 add_action( 'bbp_new_topic', array( $this, 'notify_term_subscribers_of_new_topic' ), 10, 4);70 add_action( 'bbp_new_reply', array( $this, 'notify_term_subscribers_of_new_reply' ), 10, 5);69 add_action( 'bbp_new_topic', array( $this, 'notify_term_subscribers_of_new_topic' ), 10, 2 ); 70 add_action( 'bbp_new_reply', array( $this, 'notify_term_subscribers_of_new_reply' ), 10, 3 ); 71 71 72 72 // Replace the title of subscription emails with the term-specific prefix. … … 260 260 * @param int $topic_id The topic id 261 261 * @param int $forum_id The forum id 262 * @param mixed $anonymous_data Array of anonymous user data 263 * @param int $topic_author The topic author id 264 */ 265 public function notify_term_subscribers_of_new_topic( $topic_id, $forum_id, $anonymous_data = false, $topic_author = 0 ) { 262 */ 263 public function notify_term_subscribers_of_new_topic( $topic_id, $forum_id ) { 266 264 $terms = get_the_terms( $topic_id, $this->taxonomy ); 267 265 if ( ! $terms ) { … … 410 408 * @param int $topic_id The topic id 411 409 * @param int $forum_id The forum id 412 * @param mixed $anonymous_data 413 * @param int $reply_author 414 */ 415 public function notify_term_subscribers_of_new_reply( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author ) { 410 */ 411 public function notify_term_subscribers_of_new_reply( $reply_id, $topic_id, $forum_id ) { 416 412 $terms = get_the_terms( $topic_id, $this->taxonomy ); 417 413 if ( ! $terms ) {
Note: See TracChangeset
for help on using the changeset viewer.