[wp-trac] [WordPress Trac] #12811: DEFINE for location of wp-config.php

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 2 13:15:04 UTC 2010


#12811: DEFINE for location of wp-config.php
-----------------------------+----------------------------------------------
 Reporter:  erwinkerk        |        Owner:            
     Type:  feature request  |       Status:  closed    
 Priority:  normal           |    Milestone:            
Component:  General          |      Version:  3.0       
 Severity:  normal           |   Resolution:  worksforme
 Keywords:  config           |  
-----------------------------+----------------------------------------------

Comment(by TobiasBg):

 And just for curiosity: What is your plugin doing with the wp-config.php?

 If you want to include it to get access to WP functions (i.e. for AJAX),
 be advised that this is not the correct way to do it. Instead please refer
 to the [ttp://codex.wordpress.org/AJAX_in_Plugins Codex] and to
 [http://ottopress.com/2010/dont-include-wp-load-please/ this blog-post].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12811#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list