mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Stop fatal error in post revisions when setting the include path is disabled. Props santosj, for 2.7
git-svn-id: https://develop.svn.wordpress.org/trunk@8562 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -182,6 +182,20 @@ if ( defined('WP_CACHE') )
|
||||
*/
|
||||
define('WPINC', 'wp-includes');
|
||||
|
||||
if ( constant('WP_POST_REVISIONS') ) {
|
||||
/*
|
||||
* PEAR Text_Diff depends on the include path matching its directory
|
||||
* structure. This prevents modifying source code and maintaining the
|
||||
* modifications when the package is updated.
|
||||
*/
|
||||
if ( function_exists( 'set_include_path' ) )
|
||||
set_include_path( get_include_path() . PATH_SEPARATOR . ABSPATH . WPINC );
|
||||
else if ( function_exists( 'ini_set' ) )
|
||||
ini_set( 'include_path', ini_get('include_path') . PATH_SEPARATOR . ABSPATH . WPINC );
|
||||
else
|
||||
define('WP_INCLUDE_PATH_DISABLED', true);
|
||||
}
|
||||
|
||||
if ( !defined('WP_LANG_DIR') ) {
|
||||
/**
|
||||
* Stores the location of the language directory. First looks for language folder in WP_CONTENT_DIR
|
||||
|
||||
Reference in New Issue
Block a user