Troubles when WordPress is installed in a webroot subdirectorn
-
Not all of the references to files under wp-admin use paths relative to ABSPATH. For instance, this bit in intel_info.php fails if the plugin is NOT installed under ABSPATH. (A security practice, e.g., https://roots.io/bedrock/)
/** WordPress Administration Bootstrap */ $dirname = dirname( __FILE__ ); $a = explode('/', $dirname); while(count($a)) { array_pop ($a); $root_dirname = implode('/', $a); if (file_exists ( $root_dirname . '/wp-admin/admin.php')) { require_once( $root_dirname . '/wp-admin/admin.php' ); break; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Troubles when WordPress is installed in a webroot subdirectorn’ is closed to new replies.