Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/26/2023 05:04:47 AM (20 months ago)
Author:
imath
Message:

Display a 404 if a group’s URL has no matches in registered screens

Introduces a check_parsed_query() method to the BP_Groups_Component class to make sure the requested group URL matches an existing & registered group screen.

Fixes #8953
Closes https://github.com/buddypress/buddypress/pull/138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r13496 r13525  
    38153815 *
    38163816 * @param string  $context  The display context. Required. Defaults to `read`.
     3817 *                          Possible values are `read`, `manage` or `create`.
    38173818 * @param boolean $built_in True to only get builtin screens. False otherwise.
    38183819 * @return array            The list of potential Group screens.
Note: See TracChangeset for help on using the changeset viewer.