somedev
Forum Replies Created
-
SOLUTION: The settings (in Customize) for this plugin have to be completely redone for the child theme. Lame.
Forum: Fixing WordPress
In reply to: WP_CONTENT_DIRClayton, you’re not exactly understanding the issue, but that’s okay, it’s been added to the core dev team’s bug list to address soon. This thread can be closed.
Forum: Fixing WordPress
In reply to: WP_CONTENT_DIR@claytonjames, I was specific and clear. Read my post again.
I’ll break it down more for you. To have a global and change the content directory, it’s necessary for new code to respect that and use the global when creating file paths pointing to the content directory. So when a dev adds new code and forgets this and hard codes the default directory of “wp-content”, that completely disregards the global. If an install uses WP_CONTENT_DIR, the core breaks. Not because of the global, but because somebody hard coded the path and didn’t reference the global at all. Thus, the use of a global causes the install to crash, but the bug is not the global, the bug is the lack of reference to a global in content folder file paths.
For most WordPress installs that don’t use WP_CONTENT_DIR they won’t notice.
Most developers don’t use WP_CONTENT_DIR because of this kind of neglect in the WordPress dev process, so they won’t notice either. Better safe than sorry I suppose.
If you do a text scan of the wordpress core, all references to “wp-content” should be in respect of the global. Anything beyond this is questionable. To start with, why don’t you do a scan of the core yourself and look at all the hard-coded wp-content references in some of the new code.
This is without any plugins installed. Of course, if a plugin is developed that does not reference WP_CONTENT_DIR in the file path to content, and hard codes the “wp-content” directory in the file path, then that plugin will also crash when used in a WordPress install where WP_CONTENT_DIR has been invoked in the config file.
At present, the themes folder crashes in 4.6.1 with WP_CONTENT_DIR invoked. There are other bugs, but the approach should be to scan the whole core using a text editor and make note of any questionable use of “wp-content” hard-coded into the code where it should be the global reference instead.
Forum: Plugins
In reply to: [WP Super Cache] Cannot switch to mobile theme properlyW3TC has a lot of bugs with CDN file fulfillment.