[wp-hackers] "deprecating" direct calls to wp-config.php

Olivier autremonde75 at gmail.com
Tue Nov 17 17:31:05 UTC 2009


I am generating my Javascript through a separate php file to not mix
pure php server side code and client oriented JS in php. This separate
php file isn't included with a require_once, it is included through
the enqueue_script called for target pages. This ensure that the JS
code is generated only for this page and not for all admin pages.


Thanks sir, that did the trick! ajaxurl is perfect, thanks a lot! Not
sure if it works for the frontend as well.

Anyway, thanks a lot for your help gents!


More information about the wp-hackers mailing list