Ticket #3111: 3111.patch
File 3111.patch, 696 bytes (added by , 7 years ago) |
---|
-
src/includes/topics/functions.php
2336 2336 $retval['view_all'] = true; 2337 2337 $retval['status'] = wp_trash_post( $r['id'] ); 2338 2338 $retval['message'] = __( '<strong>ERROR</strong>: There was a problem trashing the topic.', 'bbpress' ); 2339 $retval['redirect_to'] = bbp_get_topic_permalink( $r['id']);2339 $retval['redirect_to'] = current_user_can( 'view_trash' ) ? bbp_get_topic_permalink( $r['id'] ) : bbp_get_forum_permalink( $retval['status']->post_parent ); 2340 2340 2341 2341 break; 2342 2342