Skip to content

pum-admin-bar Script Fails to Load #907

@fluxism

Description

@fluxism

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

  1. Enable Popup Maker
  2. 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' ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions