Changeset 7319
- Timestamp:
- 06/27/2025 09:55:09 PM (5 months ago)
- Location:
- branches/2.6/src/includes
- Files:
-
- 3 edited
-
forums/functions.php (modified) (5 diffs)
-
replies/functions.php (modified) (2 diffs)
-
topics/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/forums/functions.php
r7300 r7319 316 316 do_action( 'bbp_new_forum', array( 317 317 'forum_id' => $forum_id, 318 'post_parent' => $forum_ parent_id,319 'forum_author' => $forum_ author,318 'post_parent' => $forum_data['post_parent'], 319 'forum_author' => $forum_data['post_author'], 320 320 'last_topic_id' => 0, 321 321 'last_reply_id' => 0, … … 384 384 // Define local variable(s) 385 385 $anonymous_data = array(); 386 $forum = $forum_id = $forum_ parent_id = 0;386 $forum = $forum_id = $forum_author = $forum_parent_id = 0; 387 387 $forum_title = $forum_content = $forum_edit_reason = ''; 388 388 … … 422 422 remove_filter( 'bbp_edit_forum_pre_content', 'bbp_filter_kses', 30 ); 423 423 } 424 425 // Get forum author 426 $forum_author = bbp_get_forum_author_id( $forum_id ); 424 427 425 428 /** Forum Parent ***********************************************************/ … … 519 522 'post_content' => $forum_content, 520 523 'post_status' => $forum_status, 521 'post_parent' => $forum_parent_id 524 'post_parent' => $forum_parent_id, 525 'post_author' => $forum_author 522 526 ) ); 523 527 … … 532 536 do_action( 'bbp_edit_forum', array( 533 537 'forum_id' => $forum_id, 534 'post_parent' => $forum_ parent_id,535 'forum_author' => $forum ->post_author,538 'post_parent' => $forum_data['post_parent'], 539 'forum_author' => $forum_data['post_author'], 536 540 'last_topic_id' => 0, 537 541 'last_reply_id' => 0, -
branches/2.6/src/includes/replies/functions.php
r7292 r7319 463 463 /** Update counts, etc... *********************************************/ 464 464 465 do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_ author, false, $reply_to );465 do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_data['post_author'], false, $reply_to ); 466 466 467 467 /** Additional Actions (After Save) ***********************************/ … … 744 744 745 745 // Update counts, etc... 746 do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_ author, true, $reply_to );746 do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_data['post_author'], true, $reply_to ); 747 747 748 748 /** Revisions *********************************************************/ -
branches/2.6/src/includes/topics/functions.php
r7255 r7319 374 374 /** Update counts, etc... *********************************************/ 375 375 376 do_action( 'bbp_new_topic', $topic_id, $forum_id, $anonymous_data, $topic_ author);376 do_action( 'bbp_new_topic', $topic_id, $forum_id, $anonymous_data, $topic_data['post_author'] ); 377 377 378 378 /** Additional Actions (After Save) ***********************************/ … … 665 665 666 666 // Update counts, etc... 667 do_action( 'bbp_edit_topic', $topic_id, $forum_id, $anonymous_data, $topic_ author, true /* Is edit */ );667 do_action( 'bbp_edit_topic', $topic_id, $forum_id, $anonymous_data, $topic_data['post_author'], true /* Is edit */ ); 668 668 669 669 /** Revisions *********************************************************/
Note: See TracChangeset
for help on using the changeset viewer.