WordPress.org

Plugin Directory

Changeset 538026


Ignore:
Timestamp:
04/29/12 23:05:35 (2 years ago)
Author:
wpmuguru
Message:

account for permalinks not ending in a /

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bp-blog-author-link/trunk/ra-bp-author-link.php

    r256199 r538026  
    4343            return str_replace( $blog_url, $member_url, $content ); 
    4444        } 
    45         return preg_replace( '|/author(/[^/]+/)|', '/' . BP_MEMBERS_SLUG . '$1' . 'profile/', $content ); 
     45        return preg_replace( '|/author(/[^/]+)/?$|', '/' . BP_MEMBERS_SLUG . '$1' . '/profile/', $content ); 
    4646    } 
    4747    return $content; 
Note: See TracChangeset for help on using the changeset viewer.