[buddypress-trac] [BuddyPress Trac] #8334: oembed/1.0/embed/activity is missing the required permission_callback
buddypress-trac
noreply at wordpress.org
Wed Jul 22 10:45:25 UTC 2020
#8334: oembed/1.0/embed/activity is missing the required permission_callback
--------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2.0
Component: Activity | Version: 2.6.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"12686" 12686]:
{{{
#!CommitTicketReference repository="" revision="12686"
Activity: add a `permission_callback` to the BP Activity Embed route
Since version 5.5, WordPress is requiring REST routes to have a permission
callback. As Activity Embeds are public content and can be seen by any
user, we are using the `__return_true` function as the permission callback
for the `oembed/1.0/embed/activity` route.
Fixes #8334 (6.0 branch)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8334#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list