Changeset 7379 for trunk/src/includes/replies/functions.php
- Timestamp:
- 11/24/2025 07:23:06 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r7378 r7379 571 571 return; 572 572 573 // Reply exists 573 // Check users ability to create new reply 574 } elseif ( ! bbp_is_reply_anonymous( $reply_id ) ) { 575 576 // User cannot edit this reply 577 if ( ! current_user_can( 'edit_reply', $reply_id ) ) { 578 bbp_add_error( 'bbp_edit_reply_permission', __( '<strong>Error</strong>: You do not have permission to edit that reply.', 'bbpress' ) ); 579 return; 580 } 581 582 // Set reply author 583 $reply_author = bbp_get_reply_author_id( $reply_id ); 584 585 // It is an anonymous post 574 586 } else { 575 587 576 // Check users ability to create new reply 577 if ( ! bbp_is_reply_anonymous( $reply_id ) ) { 578 579 // User cannot edit this reply 580 if ( ! current_user_can( 'edit_reply', $reply_id ) ) { 581 bbp_add_error( 'bbp_edit_reply_permission', __( '<strong>Error</strong>: You do not have permission to edit that reply.', 'bbpress' ) ); 582 return; 583 } 584 585 // Set reply author 586 $reply_author = bbp_get_reply_author_id( $reply_id ); 587 588 // It is an anonymous post 589 } else { 590 591 // Filter anonymous data 592 $anonymous_data = bbp_filter_anonymous_post_data(); 593 } 588 // Filter anonymous data 589 $anonymous_data = bbp_filter_anonymous_post_data(); 594 590 } 595 591 … … 1400 1396 case 'topic' : 1401 1397 default : 1402 1403 1398 // User needs to be able to publish topics 1404 1399 if ( current_user_can( 'publish_topics' ) ) { … … 2320 2315 2321 2316 <?php if ( bbp_has_replies( $replies_query ) ) : ?> 2322 <?php while ( bbp_replies() ) : bbp_the_reply(); ?> 2317 <?php while ( bbp_replies() ) : 2318 2319 bbp_the_reply(); ?> 2323 2320 2324 2321 <item>
Note: See TracChangeset
for help on using the changeset viewer.