WordPress.org

Making WordPress.org

Ticket #2055: meta-2055.patch

File meta-2055.patch, 957 bytes (added by SergeyBiryukov, 5 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php

     
    193193        return ( WordPressdotorg\Forums\Plugin::REVIEWS_FORUM_ID == bbp_get_topic_forum_id() );
    194194}
    195195
     196/**
     197 * Remove 'Stick' option for reviews.
     198 */
     199function wporg_support_remove_stick_option_for_reviews( $topic_admin_links ) {
     200        if ( wporg_support_is_single_review() ) {
     201                unset( $topic_admin_links['stick'] );
     202        }
     203
     204        return $topic_admin_links;
     205}
     206add_filter( 'bbp_topic_admin_links', 'wporg_support_remove_stick_option_for_reviews' );
     207
    196208/** bb Base *******************************************************************/
    197209
    198210function bb_base_search_form() {