Changeset 10272 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php
- Timestamp:
- 09/16/2020 10:07:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php
r10237 r10272 20 20 */ 21 21 add_action( 'plugins_loaded', __NAMESPACE__ . '\load_files' ); 22 add_action( ' admin_enqueue_scripts', __NAMESPACE__ . '\register_thirdparty_assets', 9);23 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\register_thirdparty_assets', 9);22 add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\register_thirdparty_assets', 1 ); 23 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\register_thirdparty_assets', 1 ); 24 24 25 25 /** … … 55 55 plugins_url( '/3rd-party/selectWoo/js/selectWoo.min.js', __FILE__ ), 56 56 array( 'jquery' ), 57 '1.0.8', 58 true 57 '1.0.8' 59 58 ); 60 59 … … 65 64 '1.0.8' 66 65 ); 66 67 if ( 'enqueue_block_editor_assets' === current_action() ) { 68 global $typenow; 69 if ( 'wporg_workshop' === $typenow ) { 70 wp_enqueue_script( 'select2' ); 71 wp_enqueue_style( 'select2' ); 72 } 73 } 67 74 }
Note: See TracChangeset
for help on using the changeset viewer.