Skip to:
Content

BuddyPress.org

Changeset 10844


Ignore:
Timestamp:
05/31/2016 04:44:25 PM (8 years ago)
Author:
r-a-y
Message:

Activity: In bp_activity_embed_media(), use $_GET instead of $_REQUEST.

The oEmbed endpoint uses GET (see WP_REST_SERVER::READABLE), so no
need to look in POST as well.

Props DJPaul.

See #7104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r10839 r10844  
    176176function bp_activity_embed_media() {
    177177    // Bail if oEmbed request explicitly hides media.
    178     if ( isset( $_REQUEST['hide_media'] ) && true == wp_validate_boolean( $_REQUEST['hide_media'] ) ) {
     178    if ( isset( $_GET['hide_media'] ) && true == wp_validate_boolean( $_GET['hide_media'] ) ) {
    179179        /**
    180180         * Do something after media is rendered for an activity oEmbed item.
Note: See TracChangeset for help on using the changeset viewer.