Timeline for Why is Wordpress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 12, 2019 at 9:29 | vote | accept | Micheal J. Roberts | ||
Apr 8, 2019 at 12:58 | answer | added | MikeNGarrett | timeline score: 1 | |
Apr 8, 2019 at 9:19 | comment | added | Micheal J. Roberts | @MikeNGarrett Hi Mike - your suggestion of changing the naming conventions of the enqueued scripts and styles worked, so there must have been something non-unique in the names of one of these that was causing a conflict. Obvious when I think about it. Wordpress 101. If you answer with this, I can accept. Many thanks if you don't have time. | |
Apr 5, 2019 at 16:51 | comment | added | Micheal J. Roberts | Let us continue this discussion in chat. | |
Apr 5, 2019 at 16:51 | comment | added | Micheal J. Roberts | @MikeNGarrett I must add my functions.php was an absolute fresh blank file when I started...is there something in Wordpress pre-built themes I'm missing? | |
Apr 5, 2019 at 16:50 | comment | added | MikeNGarrett | This is not normal WordPress core behavior. Can you provide some additional details about the scripts and styles you're enqueuing and the urls you're seeing included from the front-end? | |
Apr 5, 2019 at 16:48 | comment | added | Micheal J. Roberts | @MikeNGarrett Totally logged out...my enqueue.php file is very minimal. Only using scripts and styles I need. | |
Apr 5, 2019 at 16:46 | comment | added | MikeNGarrett | Just to make sure, are you looking at the front-end as a logged-in user or are you totally logged out? | |
Apr 5, 2019 at 16:45 | comment | added | Micheal J. Roberts | @MikeNGarrett Very minimal amount of plugins installed, mainly just using ACF. Wordpress version is the latest version as well, as of today. It's not a bug is it? | |
Apr 5, 2019 at 16:43 | comment | added | Micheal J. Roberts | Yeh, I think that's kind of what I'm asking. i.e., how to stop this behaviour. It's a custom theme, and haven't set anything up in place. I have everything that is available when logged in available when not and on the front end... | |
Apr 5, 2019 at 16:41 | comment | added | MikeNGarrett |
The only scripts that should be enqueued from the front-end are /wp-includes/js/wp-embed.min.js and /wp-includes/js/wp-emoji-release.min.js . If other scripts are enqueued, something in your theme or plugins must be doing this.
|
|
Apr 5, 2019 at 16:40 | review | First posts | |||
Apr 5, 2019 at 16:42 | |||||
Apr 5, 2019 at 16:38 | history | asked | Micheal J. Roberts | CC BY-SA 4.0 |