Skip to content

Media attachment scripts/styles are loaded on every admin page #3004

@brianhogg

Description

@brianhogg

Reproduction Steps

  1. Load a non-lifterlms related admin page (ie. page for another plugin)
  2. See if lifterlms/assets/js/llms-admin-media-protection-block-protect.js or lifterlms/assets/vendor/select2/js/select2.min.js are loaded

Expected Behavior

Script is not loaded

Actual Behavior

Script is loaded

This can cause an increase in conflicts with select2 (ie. with Booking Activities > Calendar Editor).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions