Making WordPress.org


Ignore:
Timestamp:
11/06/2016 09:31:13 PM (7 years ago)
Author:
jmdodd
Message:

Support Forums: Add labels and term link to allow plugin and term subscriptions in use profiles.

File:
1 edited

Legend:

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

    r4297 r4331  
    597597            ( bbp_is_single_view() && $this->compat() == bbp_get_view_id() )
    598598        ||
     599            bbp_is_subscriptions()
     600        ||
    599601            ( isset( $_GET['term_id'] ) && isset( $_GET['taxonomy'] ) )
    600602        ) {
     
    602604            if ( $this->taxonomy() == $taxonomy ) {
    603605                $paged = get_query_var( 'paged' ) > 1 ? 'page/' . absint( get_query_var( 'paged' ) ) . '/' : '';
    604                 $termlink = sprintf( 'https://wordpress.org/support/%s/%s/%s', $this->compat(), $this->slug(), $paged );
     606                $termlink = sprintf( 'https://wordpress.org/support/%s/%s/%s', $this->compat(), $term->slug, $paged );
    605607            }
    606608        }
Note: See TracChangeset for help on using the changeset viewer.