Changeset 13005 for trunk/src/bp-messages/bp-messages-cssjs.php
- Timestamp:
- 07/14/2021 08:29:34 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/bp-messages-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-cssjs.php
r12401 r13005 74 74 <?php 75 75 } 76 77 /** 78 * Registers a new script to manage the dismissal action for the Sitewide notice widget/block. 79 * 80 * @since 9.0.0 81 * 82 * @param array $scripts Data about the scripts to register. 83 * @return array Data about the scripts to register. 84 */ 85 function bp_messages_register_scripts( $scripts = array() ) { 86 $scripts['bp-sitewide-notices-script'] = array( 87 'file' => plugins_url( 'js/sitewide-notices.js', __FILE__ ), 88 'dependencies' => array(), 89 'footer' => true, 90 ); 91 92 return $scripts; 93 } 94 add_filter( 'bp_core_register_common_scripts', 'bp_messages_register_scripts', 9, 1 );
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)