Jul
03
Important changes in WordPress 2.6
Categories : Development
WordPress 2.6 allows for moving the wp-content folder and the wp-config.php file. Some code guidelines have been published to help developers standardize their plugins with the new changes. The following code will allow code to work with current versions and the upcoming 2.6.
wp-content
-
// Pre-2.6 compatibility
-
-
// Guess the location
wp-config.php
-
// WP 2.6
-
require_once($root.‘/wp-load.php’);
-
} else {
-
// Before 2.6
-
require_once($root.‘/wp-config.php’);
-
}
Share This Post
Related Posts
Receive Updates
New posts on gaarai.com delivered directly to your email.





