Skip to:
Content

bbPress.org

Changeset 5900


Ignore:
Timestamp:
08/10/2015 07:35:15 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Users: Remove superfluous home_url() calls introduced in r5815. Also fixed:

  • Replaced bbp_get_user_profile_url() with bbp_get_user_profile_edit_url() in bbp_user_profile_edit_link()
  • Fixed bbp_favorites_permalink() by using bbp_get_user_favorites_slug() instead of bbp_get_user_favorites_rewrite_id()

Props thebrandonallen. See #2831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/template.php

    r5827 r5900  
    412412
    413413                $user      = get_userdata( $user_id );
    414                 $edit_link = '<a href="' . esc_url( bbp_get_user_profile_url( $user_id ) ) . '">' . esc_html( $user->display_name ) . '</a>';
     414                $edit_link = '<a href="' . esc_url( bbp_get_user_profile_edit_url( $user_id ) ) . '">' . esc_html( $user->display_name ) . '</a>';
    415415                return apply_filters( 'bbp_get_user_profile_edit_link', $edit_link, $user_id );
    416416        }
     
    464464                        $url = trailingslashit( $profile_url ) . 'edit';
    465465                        $url = user_trailingslashit( $url );
    466                         $url = home_url( $url );
    467466
    468467                // Unpretty permalinks
     
    834833                // Pretty permalinks
    835834                if ( bbp_use_pretty_urls() ) {
    836                         $url = trailingslashit( $profile_url ) . bbp_get_user_favorites_rewrite_id();
     835                        $url = trailingslashit( $profile_url ) . bbp_get_user_favorites_slug();
    837836                        $url = user_trailingslashit( $url );
    838                         $url = home_url( $url );
    839837
    840838                // Unpretty permalinks
     
    995993                        $url = trailingslashit( $profile_url ) . bbp_get_user_subscriptions_slug();
    996994                        $url = user_trailingslashit( $url );
    997                         $url = home_url( $url );
    998995
    999996                // Unpretty permalinks
     
    14351432                        $url = trailingslashit( $profile_url ) . bbp_get_topic_archive_slug();
    14361433                        $url = user_trailingslashit( $url );
    1437                         $url = home_url( $url );
    14381434
    14391435                // Unpretty permalinks
     
    14921488                        $url = trailingslashit( $profile_url ) . bbp_get_reply_archive_slug();
    14931489                        $url = user_trailingslashit( $url );
    1494                         $url = home_url( $url );
    14951490
    14961491                // Unpretty permalinks
Note: See TracChangeset for help on using the changeset viewer.