You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain plugins load PHP scripts directly, not through WordPress, which means that the constants are not available, yet the file then tries to load WordPress core files.
For example s2member loads a file s2member-o.php
This file tries to load wp-load.php and searches down the tree for wp-settings.php
Same with the plugin image-pro, it tries to load wp-load and assumes it's path.
I don't think there is way other than patching these plugins but here's a thought:
What if we in WordPress-Skeleton create a file in the root called "wp-skeleton-define.php" this file would look something like this:
<?php
define ('WP_SKELETON', true);
Plugins and themes could check for that file, include it when it exists and then if it's set to true wp can be found in SERVER['DOCUMENT_ROOT'].'/wp' or if it's a string that would be the path.
This can only be done if we get a group supporting this, including the WordPress core developers.
The text was updated successfully, but these errors were encountered:
Certain plugins load PHP scripts directly, not through WordPress, which means that the constants are not available, yet the file then tries to load WordPress core files.
For example s2member loads a file s2member-o.php
This file tries to load wp-load.php and searches down the tree for wp-settings.php
Same with the plugin image-pro, it tries to load wp-load and assumes it's path.
I don't think there is way other than patching these plugins but here's a thought:
What if we in WordPress-Skeleton create a file in the root called "wp-skeleton-define.php" this file would look something like this:
Plugins and themes could check for that file, include it when it exists and then if it's set to true wp can be found in SERVER['DOCUMENT_ROOT'].'/wp' or if it's a string that would be the path.
This can only be done if we get a group supporting this, including the WordPress core developers.
The text was updated successfully, but these errors were encountered: