Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress Core resources still create 404 errors on single sites #156

Closed
jazzsequence opened this issue Aug 12, 2024 · 0 comments · Fixed by #157
Closed

WordPress Core resources still create 404 errors on single sites #156

jazzsequence opened this issue Aug 12, 2024 · 0 comments · Fixed by #157
Assignees
Labels
bug Something isn't working

Comments

@jazzsequence
Copy link
Contributor

URLs like the following throw 404 errors in the console on single sites:

  • https://${url}/wp-includes/blocks/navigation/view.min.js/?ver=6.6.1
  • https://${url}/wp-includes/blocks/navigation/style.min.css/?ver=6.6.1
  • https://${url}/wp-includes/js/dist/interactivity.min.js/?ver=6.6.1
  • https://${url}/wp-includes/images/w-logo-blue-white-bg.png
  • https://${url}/wp-admin/admin-ajax.php?action=wp-compression-test&test=1&_ajax_nonce=${nonce}

Code that was written to handle this was specifically wrapped in multisite checks to only apply to multisite, but I'm seeing the issue on new single sites, too.

Proposed resolution

Rewrite fix_core_resource_urls to apply more broadly and move multisite conditions inside the function so the filter runs on everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant