Comments (3)
I would expect that most plugins that use the admin_enqueue_scripts
hook enqueue scripts without checking for DOING_AJAX
. Therefore the problem you're seeing with Query Monitor will also be seen in many other plugins that enqueue and localise scripts.
Unfortunately, this sounds like something your plugin needs to handle, rather than each individual plugin that enqueues scripts. What do you think?
from query-monitor.
Hm, yes, I could (and will probably) flush all existing registered scripts on $GLOBALS['wp_scripts']
. But normally, plugins enqueue their scripts on the hook that is made for that: admin_enqueue_scripts
, wp_enqueue_scripts
, login_enqueue_scripts
or customize_controls_enqueue_scripts
. This is why QM was the only plugin adding its scripts to my plugin output.
Right now, QM enqueues its script on init
. This is way too early, it doesnโt even wait for the spam blog check. It should use the proper hooks to avoid side effects.
from query-monitor.
Ah you're right. Not sure how I missed that one! I'll get it fixed in the next version.
from query-monitor.
Related Issues (20)
- Logs panel: broken link HOT 2
- WordPress 6.5: Support new `load_translation_file` filter HOT 2
- 403 Forbidden on self GET wp-admin HOT 2
- Broken links HOT 3
- Interference with W3 Total Cache due to "db.php" HOT 2
- Show template parts that were not loaded via the `core/template-part` block type
- vulnerability management HOT 1
- Problem w/ the auto-loader in 3.16.0 HOT 11
- 3.16 throws critical error HOT 1
- Fatal Error when running alongside RedisCachePro HOT 4
- QM not triggering on front end
- RCA of the 3.16.0 release HOT 2
- PHP Warning: Undefined array key (probably Windows-only issue) HOT 2
- Release 3.16.1 and 3.16.2 on GitHub HOT 1
- Updating Query Monitor output after SSR with AJAX and REST API calls HOT 1
- Fatal error using latest Timber HOT 3
- do_action ('qm/... never does anything HOT 4
- PHP8.4 alpha 1 warnings - nullable is deprecated, the explicit nullable type must be used instead HOT 1
- Can QM intercept var dumps? HOT 1
- Tool Presentation Fails when viewing Gravity Forms Entries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from query-monitor.