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

Olivier autremonde75 at gmail.com
Wed Nov 18 13:40:47 UTC 2009

> <script type="text/javascript">
>    var ajaxurl = "<?php echo admin_url('admin_ajax.php'); ?>";
> </script>

Please note that there is a typo here, the right code is :
	<script type="text/javascript">
	var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";

Note that the admin_ajax is in fact admin-ajax. I spent 3 hours today
to find the solution, was too obvious ;)

More information about the wp-hackers mailing list