Quantcast
Channel: WordPress.org Forums » [Wordfence Security - Firewall, Malware Scan, and Login Security] Support
Viewing all articles
Browse latest Browse all 32701

Julio Potier on "[Plugin: Wordfence Security] Misuse of admin_url()"

$
0
0

Hello

I can see you're using admin_url() in a bad way :

admin_url('admin-ajax.php') . '?action=wordfence_testAjax';
instead of
admin_url('admin-ajax.php?action=wordfence_testAjax' );

You have to include the full url, not only the file.

Can you do this everywhere ?

Why am i asking this ? Not only to be "WordPress Protocoly Correct", but there is a filter hook in admin_url() and i need (and others plugin authors) to hook the content, and i need to read the params :/

Thanks !

ps : network_admin_url() too ;)

http://wordpress.org/plugins/wordfence/


Viewing all articles
Browse latest Browse all 32701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>