Ticket #11059: 11059_patch_2.diff
| File 11059_patch_2.diff, 764 bytes (added by strider72, 4 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 if ( defined( 'WP_DEBUG' ) && ( true === WP_DEBUG ) ) 74 trigger_error( 'Calling wp-config.php directly from a plugin is <strong>strongly discouraged</strong>. Instead your code should use actions and filters, or call "wp-blog-header.php"' ); 73 75 define('ABSPATH', dirname(__FILE__) . '/'); 76 } 74 77 75 78 /** Sets up WordPress vars and included files. */ 76 79 require_once(ABSPATH . 'wp-settings.php');
