Ticket #11059: wp-config_deprecate_patch.diff
File wp-config_deprecate_patch.diff, 605 bytes (added by , 14 years ago) |
---|
-
wp-config-sample.php
69 69 /* That's all, stop editing! Happy blogging. */ 70 70 71 71 /** WordPress absolute path to the Wordpress directory. */ 72 if ( !defined('ABSPATH') ) 72 if ( ! defined( 'ABSPATH' ) ) { 73 _deprecated_file( 'Calling wp-config.php directly from a plugin', 0.0, 'wp-load.php' ); 73 74 define('ABSPATH', dirname(__FILE__) . '/'); 75 } 74 76 75 77 /** Sets up WordPress vars and included files. */ 76 78 require_once(ABSPATH . 'wp-settings.php');