Skip to:
Content

BuddyPress.org

Changeset 13535


Ignore:
Timestamp:
07/30/2023 07:08:49 AM (17 months ago)
Author:
imath
Message:

BP Blocks: define embedScriptURL property of bp.blockData object

This property was missed during the @wordpress/scripts migration process.

See #8457
Fixes #8958
Closes https://github.com/buddypress/buddypress/pull/144

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-blocks.php

    r13464 r13535  
    101101        $asset_collection['version'],
    102102        false
     103    );
     104
     105    // Adds BP Block Assets to the `bp` global.
     106    wp_add_inline_script(
     107        'bp-block-data',
     108        sprintf(
     109            'bp.blockData.embedScriptURL = \'%s\';',
     110            esc_url_raw( includes_url( 'js/wp-embed.min.js' ) )
     111        ),
     112        'after'
    103113    );
    104114}
Note: See TracChangeset for help on using the changeset viewer.