[Plugin: More Fields] Small suggestion on code
-
In more-fields-field-types.php, line 355, change this:
var url = '" . get_option('siteurl') . "/wp-admin/admin-ajax.php';
to
var url = '" . admin_url('admin-ajax.php') . "';
because <tt>wp-admin</tt> can change.
The same process with wp-content, etc.I see you uses <tt>plugins_url()</tt> but I have an output html wich generate “wp-content” url, and my content is not in this directory.
Looking for this code…
- The topic ‘[Plugin: More Fields] Small suggestion on code’ is closed to new replies.