Making WordPress.org

Changeset 5637


Ignore:
Timestamp:
07/09/2017 03:33:30 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Remove user's "Active Topics" view added in [5626].

"Topics Started" view is now ordered by latest reply instead, see [5636].

See #2470.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-user.php

    r5626 r5637  
    3737                        <?php if ( bbp_is_single_user_replies()                     ) bbp_get_template_part( 'user', 'replies-created'   ); ?>
    3838                        <?php if ( wporg_support_is_single_user_reviews()           ) bbp_get_template_part( 'user', 'reviews-written'   ); ?>
    39                         <?php if ( wporg_support_is_single_user_active_topics()     ) bbp_get_template_part( 'user', 'active-topics'     ); ?>
    4039                        <?php if ( wporg_support_is_single_user_topics_replied_to() ) bbp_get_template_part( 'user', 'topics-replied-to' ); ?>
    4140                        <?php if ( bbp_is_single_user_edit()                        ) bbp_get_template_part( 'form', 'user-edit'         ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-topic.php

    r5626 r5637  
    5757                                        ||
    5858                                                bbp_is_single_user_topics()
    59                                         ||
    60                                                 wporg_support_is_single_user_active_topics()
    6159                                        ) : ?>
    6260
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-details.php

    r5626 r5637  
    6060                                </li>
    6161                        <?php endif; ?>
    62 
    63                         <li class="<?php if ( wporg_support_is_single_user_active_topics() ) :?>current<?php endif; ?>">
    64                                 <span class='bbp-user-active-topics-link'>
    65                                         <a href="<?php bbp_user_profile_url(); ?>active/" title="<?php
    66                                                 /* translators: %s: user's display name */
    67                                                 printf( esc_attr__( "%s's Active Topics", 'wporg-forums' ), bbp_get_displayed_user_field( 'display_name' ) );
    68                                         ?>"><?php esc_html_e( 'Active Topics', 'wporg-forums' ); ?></a>
    69                                 </span>
    70                         </li>
    7162
    7263                        <li class="<?php if ( wporg_support_is_single_user_topics_replied_to() ) :?>current<?php endif; ?>">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r5629 r5637  
    302302function wporg_support_is_single_user_reviews() {
    303303        return (bool) get_query_var( 'wporg_single_user_reviews' );
    304 }
    305 
    306 /**
    307  * Check if the current page is a user's "Active Topics" page.
    308  *
    309  * @return bool True if the page is an "Active Topics" page, false otherwise.
    310  */
    311 function wporg_support_is_single_user_active_topics() {
    312         return (bool) get_query_var( 'wporg_single_user_active_topics' );
    313304}
    314305
Note: See TracChangeset for help on using the changeset viewer.