WordPress.org

Making WordPress.org

Changeset 4308


Ignore:
Timestamp:
10/29/2016 05:36:15 PM (4 years ago)
Author:
jmdodd
Message:

Support Forums: Use nicename for pagination rather than user login.

See #2071.

File:
1 edited

Legend:

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

    r4298 r4308  
    212212        // Pretty permalinks.
    213213        if ( $wp_rewrite->using_permalinks() ) {
    214             $url = $wp_rewrite->root . "view/{$view}/" . $this->user->user_login;
     214            $url = $wp_rewrite->root . "view/{$view}/" . $this->user->user_nicename;
    215215            $url = home_url( user_trailingslashit( $url ) );
    216216
     
    219219            $url = add_query_arg( array(
    220220                bbp_get_view_rewrite_id() => $view,
    221                 'wporg_user_login'        => $this->user->user_login,
     221                'wporg_user_login'        => $this->user->user_nicename,
    222222            ) );
    223223        }
Note: See TracChangeset for help on using the changeset viewer.