[buddypress-trac] [BuddyPress Trac] #6694: filter for $after_member_slug in bp-core-catchuri.php

buddypress-trac noreply at wordpress.org
Wed Apr 6 19:18:07 UTC 2016


#6694: filter for $after_member_slug in bp-core-catchuri.php
-----------------------------------------+--------------------
 Reporter:  kmb@…                        |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  2.6
Component:  API - Rewrite Rules          |     Version:  2.3.3
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+--------------------

Comment (by r-a-y):

 `02.patch` adds the filter to root profile lookups as well.  I've also
 renamed the filter to `'bp_core_set_uri_globals_member_slug'`.

 One thing to note is for root profiles, we do a check for a WP User with
 `get_user_by()`.  For regular member lookups, we use
 `bp_core_get_userid()` / `bp_core_get_userid_from_nicename()`.

 We should probably switch to one method instead of using two different
 types of lookups here.  Might be better to switch to using our BP
 functions since we have filters in those functions and `get_user_by()`
 doesn't.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6694#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list