[buddypress-trac] [BuddyPress Trac] #5332: Run the URI catching methods when root profiles are enabled

buddypress-trac noreply at wordpress.org
Thu Jan 16 02:17:32 UTC 2014


#5332: Run the URI catching methods when root profiles are enabled
-----------------------------------+--------------------
 Reporter:  stevenkword            |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  2.0
Component:  Core                   |     Version:  1.9.1
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+--------------------

Comment (by boonebgorges):

 > ​http://example.com/boone/2014/01/09/hello-world/ will point toward a WP
 secondary BLOG post called "hello-world"

 Yup, that's what I meant :) This confirms that your use case is very edge
 case.

 > Please let me know what I can do to help get the necessary hooks into
 BP.

 Well, I don't really know off the top of my head what those hooks would
 be. I guess my suggestion is to start building a plugin that does what
 you're suggesting, and see where it leads you. You'll probably need a
 custom sunrise.php file (which is loaded in time for you to do custom
 logic to set `$current_blog` - see
 https://core.trac.wordpress.org/browser/tags/3.8/src/wp-includes/ms-
 settings.php#L17). You'll have to toy with various ways of deciding which
 blog should be loaded at this point (a regex for bloggish paths like
 /2014/01/ might work?)

 If you run into a place where BuddyPress in particular is getting in your
 way, please feel free to offer a suggestion.

 Let's leave this ticket open to consider imath's
 https://buddypress.trac.wordpress.org/attachment/ticket/5332/5332-illegal-
 names.diff. At a glance, this looks like a good solution to problem of
 username/blogname clashes when running root profiles.

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


More information about the buddypress-trac mailing list