Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2021 08:43:39 PM (3 years ago)
Author:
espellcaste
Message:

Update all references from wp_parse_args to bp_parse_args.

Also, add WPCS improvements to align bp_parse_args correctly.

Props imath
Fixes #8564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-oembed-extension.php

    r12685 r13108  
    368368     */
    369369    protected function get_oembed_response_data( $item, $width ) {
    370         $data = wp_parse_args( $item, array(
    371             'version'       => '1.0',
    372             'provider_name' => get_bloginfo( 'name' ),
    373             'provider_url'  => get_home_url(),
    374             'author_name'   => get_bloginfo( 'name' ),
    375             'author_url'    => get_home_url(),
    376             'title'         => ucfirst( $this->slug_endpoint ),
    377             'type'          => 'rich',
    378         ) );
     370        $data = bp_parse_args(
     371            $item,
     372            array(
     373                'version'       => '1.0',
     374                'provider_name' => get_bloginfo( 'name' ),
     375                'provider_url'  => get_home_url(),
     376                'author_name'   => get_bloginfo( 'name' ),
     377                'author_url'    => get_home_url(),
     378                'title'         => ucfirst( $this->slug_endpoint ),
     379                'type'          => 'rich',
     380            )
     381        );
    379382
    380383        /** This filter is documented in /wp-includes/embed.php */
Note: See TracChangeset for help on using the changeset viewer.