Making WordPress.org


Ignore:
Timestamp:
09/28/2016 07:42:46 PM (8 years ago)
Author:
coffee2code
Message:

Forums Theme: Remove 'Stick' admin link for reviews.

Props SergeyBiryukov for initial patch.
Fixes #2055.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-stickies-compat.php

    r4159 r4161  
    133133        }
    134134        $user_id = get_current_user_id();
    135         if ( $this->user_can_stick( $user_id, $this->term->term_id, $topic_id ) ) {
     135        if ( ! ( function_exists( 'wporg_support_is_single_review' ) && wporg_support_is_single_review() )
     136            &&
     137            $this->user_can_stick( $user_id, $this->term->term_id, $topic_id )
     138        ) {
    136139            $r['stick'] = self::get_stick_link( array( 'topic_id' => $topic_id, 'term_id' => $this->term->term_id ) );
    137140        } else {
Note: See TracChangeset for help on using the changeset viewer.