Skip to:
Content

BuddyPress.org

Changeset 11303


Ignore:
Timestamp:
12/18/2016 08:06:16 PM (4 years ago)
Author:
djpaul
Message:

Media extractor: handle string return values from shortcode_parse_atts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-media-extractor.php

    r10417 r11303  
    470470                foreach ( $matches[2] as $i => $shortcode_name ) {
    471471                    $attrs = shortcode_parse_atts( $matches[3][ $i ] );
    472                     $attrs = ( ! $attrs ) ? array() : $attrs;
     472                    $attrs = ( ! $attrs ) ? array() : (array) $attrs;
    473473
    474474                    $shortcode               = array();
Note: See TracChangeset for help on using the changeset viewer.