set_content_url() / WPFC_WP_CONTENT_URL
-
Hello Emre,
First of all, thanks for this amazing plugin. I use it on all of my sites, and force all clients to use it as well 🙂I have a question about how the
set_content_url()function uses theWPFC_WP_CONTENT_URLdefinition.I see that you check to see if a plugin called
hide-my-wpis enabled, and if it is, you then replace thewp_contentfolder with what I assume is a user-defined option on that other plugin. You thendefine("WPFC_WP_CONTENT_URL", $content_url);So my problem is that left alone, cached assets always show as
/wp-content/, even if you’re someone like me who may have changed the folder to something like/core/.I can easily fix this myself by editing the WPFC and adding
$content_url = str_replace(basename(WPFC_WP_CONTENT_DIR), "core", $content_url);above the define, but this os obviously not a good solution as it would revert on every update of WPFC.What are your thoughts about this? In the next version, could you perhaps add a hook to set_content_url(), so that developers can override the
$content_urlvar?
The topic ‘set_content_url() / WPFC_WP_CONTENT_URL’ is closed to new replies.