Making WordPress.org

Changeset 7489


Ignore:
Timestamp:
07/24/2018 04:27:16 PM (6 years ago)
Author:
obenland
Message:

Support: Remove duplicate links to create topics

Props Clorith.
See [7450].
Fixes #3722.

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
2 edited

Legend:

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

    r7453 r7489  
    244244        if ( bbp_is_single_forum() ) {
    245245            printf( '<a class="button create-topic" href="#new-topic-0">%s</a>', __( 'Create Topic', 'wporg-forums' ) );
     246            remove_filter( 'bbp_template_before_pagination_loop', array( $this, 'new_topic_link' ) );
    246247        }
    247248    }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sidebar.php

    r5946 r7489  
    2626                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php _e( 'Recent Posts', 'wporg-forums' ); ?></a></li>
    2727                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'wporg-forums' ); ?></a></li>
    28                     <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
    29                         <li class="create-topic"><a href="#new-post"><?php _e( 'Create Topic', 'wporg-forums' ); ?></a></li>
    30                     <?php endif; ?>
    3128                    <?php if ( is_user_logged_in() && $forum_subscription_link = bbp_get_forum_subscription_link() ) : ?>
    3229                        <li class="forum-subscribe"><?php echo $forum_subscription_link; ?></li>
Note: See TracChangeset for help on using the changeset viewer.