KOB
(@kobenland)
Hey ronthai,
this should work:
function wpuf_fix() {
if ( defined('DOING_AJAX') AND DOING_AJAX ) {
remove_action( 'admin_init', 'wpuf_restrict_admin_access', 10 );
}
}
add_action( 'admin_init', 'wpuf_fix', 9 );
Paste that in the functions.php file of your theme and let me know if it doesn’t solve your problem.
Cheers,
Konstantin
Thanks Konstantin,
That did the job. It took me 3 tries, but that is just because I am a total novice with php.
First I just pasted it on top of the theme functions.php, which just put the whole code as text (yes, stupid me)
Second I pasted it in an excisting <?php … ?> which stop giving the error, but all search suggestions had only 1 suggestion and that was -1, yes -1 whatever, where ever that comes from.
Third try, I pasted it in its OWN <?php … ?> part/field, whatever it is called and that did the job. I even tried it on my laptop as a final test, since the laptop does not know me as an admin and has no cache what so ever on it for the website with the plugin.
It works perfect now.
As far as I can tell it does not touches anything from wp-user-frontend, it seems to be working as it should.
Rating 5 stars and told it works with 3.12
Thank you and regards, Ron