[buddypress-trac] [BuddyPress Trac] #8932: Make sure to display a 404 if a Members (sub)nav misses a valid screen function

buddypress-trac noreply at wordpress.org
Sun Jul 9 10:06:37 UTC 2023


#8932: Make sure to display a 404 if a Members (sub)nav misses a valid screen
function
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.0.0
Component:  Members       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13512" 13512]:
 {{{
 #!CommitTicketReference repository="" revision="13512"
 Check the requested Member’s page matches a valid nav screen function

 The `BP_Members_Component::check_parsed_query()` method happens once the
 query is parsed & once the single displayed Member's navigation is set. It
 checks the current action matches a navigation slug & whether the
 corresponding screen function exists and is callable. If it's not the case
 a 404 is displayed, just like it's currently the case when the BP Legacy
 URL parser is in use.

 See #4954
 Fixes #8932
 Closes https://github.com/buddypress/buddypress/pull/125
 }}}

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


More information about the buddypress-trac mailing list