nylen/PHP-Error-Log-Viewer

Enqueue scripts globally to support admin bar deletions

johnalarcon opened this issue · 1 comments

Description

To support admin bar log-purging, the JS (which is what confirms the purge) must be loaded on the frontend (if the admin bar is active) and in all backend views, rather than just in its own local screens. A new method is needed: enqueue_global_assets, et al, and the assets enqueued accordingly.

Context

There's no sense having a public and admin method for this when they would be doing the same thing. The current admin method should be deprecated and replaced with a global method. This request is related to #22, #24, and #25.

Implemented in 2.2.0.