Making WordPress.org

Changeset 4331


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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
Files:
2 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        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php

    r4309 r4331  
    309309                'taxonomy' => 'topic-plugin',
    310310                'labels'   => array(
    311                     'receipt' => __( 'You are receiving this email because you are subscribed to a plugin.', 'wporg-forums' ),
     311                    'subscribed_header'      => __( 'Subscribed Plugins', 'wporg-forums' ),
     312                    'subscribed_user_notice' => __( 'You are not currently subscribed to any plugins.', 'wporg-forums' ),
     313                    'subscribed_anon_notice' => __( 'This user is not currently subscribed to any plugins.', 'wporg-forums' ),
     314                    'receipt'                => __( 'You are receiving this email because you are subscribed to a plugin.', 'wporg-forums' ),
    312315                ),
    313316            ) );
     
    315318                'taxonomy' => 'topic-theme',
    316319                'labels'   => array(
    317                     'receipt' => __( 'You are receiving this email because you are subscribed to a theme.', 'wporg-forums' ),
     320                    'subscribed_header'      => __( 'Subscribed Themes', 'wporg-forums' ),
     321                    'subscribed_user_notice' => __( 'You are not currently subscribed to any themes.', 'wporg-forums' ),
     322                    'subscribed_anon_notice' => __( 'This user is not currently subscribed to any themes.', 'wporg-forums' ),
     323                    'receipt'                => __( 'You are receiving this email because you are subscribed to a theme.', 'wporg-forums' ),
    318324                ),
    319325            ) );
Note: See TracChangeset for help on using the changeset viewer.