Changeset 5729 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
- Timestamp:
- 08/02/2017 03:24:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
r5710 r5729 395 395 } 396 396 397 // Remove 'Stick' link for reviews or non-public topics. 398 if ( Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id( $post_id ) || ! bbp_is_topic_public( $post_id ) ) { 399 unset( $r['stick'] ); 400 } 401 397 402 // Add 'Archive' link. 398 403 $r['archive'] = $this->get_archive_link( array( 'post_id' => $post_id ) ); … … 415 420 unset( $actions['unapproved'] ); 416 421 417 // Remove 'Stick' link for reviews .418 if ( Plugin::REVIEWS_FORUM_ID == $post->post_parent) {422 // Remove 'Stick' link for reviews or non-public topics. 423 if ( Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id( $post->ID ) || ! bbp_is_topic_public( $post->ID ) ) { 419 424 unset( $actions['stick'] ); 420 425 } 421 422 426 423 427 return $actions; … … 503 507 } else { 504 508 bbp_unstick_topic( $post->ID ); 505 }509 } 506 510 507 511 return true;
Note: See TracChangeset
for help on using the changeset viewer.