Changeset 6384 for trunk/src/includes/admin/topics.php
- Timestamp:
- 03/20/2017 10:44:00 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/topics.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r6334 r6384 550 550 551 551 // Bail if current user cannot edit this topic 552 if ( ! current_user_can( 'edit_topic', $topic_id ) ) {552 if ( ! current_user_can( 'edit_topic', $topic_id ) ) { 553 553 return $topic_id; 554 554 } … … 617 617 618 618 // What is the user doing here? 619 if ( ! current_user_can( 'moderate', $topic->ID ) ) {619 if ( ! current_user_can( 'moderate', $topic->ID ) ) { 620 620 wp_die( __( 'You do not have permission to do that.', 'bbpress' ) ); 621 621 } … … 979 979 // Close 980 980 // Show the 'close' and 'open' link on published and closed posts only 981 if ( in_array( $topic->post_status, array( bbp_get_public_status_id(), bbp_get_closed_status_id() )) ) {981 if ( bbp_is_topic_public( $topic->ID ) ) { 982 982 $close_uri = wp_nonce_url( add_query_arg( array( 'topic_id' => $topic->ID, 'action' => 'bbp_toggle_topic_close' ), remove_query_arg( array( 'bbp_topic_toggle_notice', 'topic_id', 'failed', 'super' ) ) ), 'close-topic_' . $topic->ID ); 983 983 if ( bbp_is_topic_open( $topic->ID ) ) {
Note: See TracChangeset
for help on using the changeset viewer.