Changeset 13464 for trunk/src/bp-core/bp-core-cssjs.php
- Timestamp:
- 04/25/2023 10:17:33 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cssjs.php
r13382 r13464 95 95 // Version 2.7. 96 96 'bp-livestamp' => array( 'file' => "{$url}vendor/livestamp{$min}.js", 'dependencies' => array( 'jquery', 'moment' ), 'footer' => true ), 97 98 // Version 9.0.99 'bp-dynamic-widget-block-script' => array( 'file' => "{$url}dynamic-widget-block.js", 'dependencies' => array( 'lodash', 'wp-url' ), 'footer' => true ),100 97 ); 101 98 … … 117 114 $scripts['bp-moment-locale'] = array( 'file' => esc_url( $moment_locale_url ), 'dependencies' => array( 'bp-moment' ), 'footer' => true ); 118 115 } 116 } 117 118 if ( bp_support_blocks() ) { 119 $asset = array( 120 'dependencies' => array(), 121 'version' => '' 122 ); 123 $asset_path = trailingslashit( dirname( __FILE__ ) ) . 'blocks/dynamic-widget-block/index.asset.php'; 124 125 if ( file_exists( $asset_path ) ) { 126 $asset = require $asset_path; 127 } 128 129 $scripts['bp-dynamic-widget-block'] = array( 130 'file' => plugins_url( 'blocks/dynamic-widget-block/index.js', __FILE__ ), 131 'dependencies' => $asset['dependencies'], 132 'footer' => true, 133 ); 119 134 } 120 135
Note: See TracChangeset
for help on using the changeset viewer.