I am talking about
wp-includes and NOT
wp-content directory. And since you asked, I've set a different domain for the
wp-content directory by adding this in my wp-config.php:
define( 'WP_CONTENT_URL', 'http://static-content.com/wp-content');
wp-includes to the new domain. And as there's no such thing as
WP_INCLUDES_URL, I have to manually un/de-register each handle and have it enqueued with the static domain (from the e.g. static-content.com).
The handle for
http://example.com/wp-includes/js/quicktags.js which the Basic Comment Quicktags plugin uses (as a dependency) is
quicktags, and trying to un/de-register the handle and enqueuing it with the static domain somehow breaks the plugin's CDATA JS output in the footer.
What I am asking is, what is the proper way to have this file —
http://example.com/wp-includes/js/quicktags.js — served from the domain that serves static files, i.e. like this —
I would be very helpful if you can give me the proper function/code to un-register and enqueue the handle (quicktags), as my method seems to break the plugin.
Hope I am clear enough this time. :)