Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/29/2017 12:46:17 AM (8 years ago)
Author:
johnjamesjacoby
Message:

URLs: Audit the usage of trailingslashit().

This change ensures that trailing slashes are only used at the end of URLs where they're expected, and avoids adding slashes at the end of URLs when permalinks are configured not to include them.

See #3181.

File:
1 edited

Legend:

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

    r6741 r6745  
    549549            }
    550550
     551            // Run through home_url()
    551552            $url = trailingslashit( bbp_get_root_url() . bbp_get_user_slug() ) . $user_nicename;
    552553            $url = user_trailingslashit( $url );
Note: See TracChangeset for help on using the changeset viewer.