Changeset 5734
- Timestamp:
- 08/02/2017 01:23:10 PM (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
r5732 r5734 396 396 397 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 ) ) { 398 if ( 399 Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id( $post_id ) 400 || 401 ! in_array( get_post_status( $post_id ), array( 'publish', 'closed' ) ) 402 ) { 399 403 unset( $r['stick'] ); 400 404 } … … 421 425 422 426 // 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 ) ) { 427 if ( 428 Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id( $post->ID ) 429 || 430 ! in_array( get_post_status( $post->ID ), array( 'publish', 'closed' ) ) 431 ) { 424 432 unset( $actions['stick'] ); 425 433 }
Note: See TracChangeset
for help on using the changeset viewer.