[buddypress-trac] [BuddyPress] #5149: 404 error page not being used when root profiles is enabled

buddypress-trac noreply at wordpress.org
Sat Nov 16 19:01:10 UTC 2013


#5149: 404 error page not being used when root profiles is enabled
---------------------------+---------------------------
 Reporter:  henrywright    |       Owner:  boonebgorges
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  1.9
Component:  Rewrite Rules  |     Version:  1.8.1
 Severity:  normal         |  Resolution:  fixed
 Keywords:  needs-patch    |
---------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7581"]:
 {{{
 #!CommitTicketReference repository="" revision="7581"
 Don't force WP to load the 'members' page when BP_ENABLE_ROOT_PROFILES

 Forcing 'members' into the $wp_query query_args forces WP to load the
 Members
 page as the currently queried object. This, in turn, causes problems with
 the
 (somewhat obfuscated) way that BuddyPress manually manages 404 status when
 root
 profiles are enabled. As a result, URLs like example.com/boone/foo (where
 'foo'
 is a nonexistent component) loaded the raw Members WP page, rather than
 404ing
 as BP has such a request do under normal circumstances.

 We correct the problem by refraining from forcing $wp_query to load
 Members.

 Fixes #5149
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5149#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list