Describe the bug
Admin scripts fail to enqueue on front end, breaking the admin bar button
Site information
Popup Maker version: 1.13.1
WordPress version: 5.5.3
PHP version: 7.4.1
Expected behavior
popup-make/assets/js/admin-bar.js should load as long as Disable Popups Admin Bar is disabled in settings.
Current behavior
admin-bar.js, using the handle 'pum-admin-bar' fails to load. Query Monitor states "dependency missing"
Steps to reproduce
- Enable Popup Maker
- Visit front end page
Errors
Additional context
Was able to fix by adding to includes/modules/admin-bar.php, line 23:
add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_files' ) );
Describe the bug
Admin scripts fail to enqueue on front end, breaking the admin bar button
Site information
Popup Maker version: 1.13.1
WordPress version: 5.5.3
PHP version: 7.4.1
Expected behavior
popup-make/assets/js/admin-bar.js should load as long as Disable Popups Admin Bar is disabled in settings.
Current behavior
admin-bar.js, using the handle 'pum-admin-bar' fails to load. Query Monitor states "dependency missing"
Steps to reproduce
Errors
Additional context
Was able to fix by adding to includes/modules/admin-bar.php, line 23:
add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_files' ) );