Changeset 13464 for trunk/src/bp-groups/bp-groups-cssjs.php
- Timestamp:
- 04/25/2023 10:17:33 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cssjs.php
r13140 r13464 66 66 * 67 67 * @since 9.0.0 68 * @since 12.0.0 Uses the `@wordpress/scripts` `index.asset.php` generated file to get dependencies. 68 69 * 69 70 * @param array $scripts Data about the scripts to register. … … 71 72 */ 72 73 function bp_groups_register_widget_block_scripts( $scripts = array() ) { 74 if ( ! bp_support_blocks() ) { 75 return $scripts; 76 } 77 78 $asset = array( 79 'dependencies' => array(), 80 'version' => '' 81 ); 82 $asset_path = trailingslashit( dirname( __FILE__ ) ) . 'blocks/dynamic-widget/index.asset.php'; 83 84 if ( file_exists( $asset_path ) ) { 85 $asset = require $asset_path; 86 } 87 73 88 $scripts['bp-dynamic-groups-script'] = array( 74 'file' => plugins_url( 'js/dynamic-groups.js', __FILE__ ), 75 'dependencies' => array( 76 'bp-dynamic-widget-block-script', 77 'wp-i18n', 78 ), 89 'file' => plugins_url( 'blocks/dynamic-widget/index.js', __FILE__ ), 90 'dependencies' => $asset['dependencies'], 79 91 'footer' => true, 80 92 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)