Hi @kranate,
I believe it is used to fade-out the notice once it is dismissed. However, it can be safely removed.
Locate wp-content/plugins/wordfence/lib/wordfenceClass.php and go to line 5635:
Change this line:
echo '<div id="wordfenceAutoUpdateChoice" class="fade error"><p><strong>Do you want Wordfence to stay up-to-date automatically?</strong> <a href="#" onclick="wordfenceExt.autoUpdateChoice(\'yes\'); return false;">Yes, enable auto-update.</a> | <a href="#" onclick="wordfenceExt.autoUpdateChoice(\'no\'); return false;">No thanks.</a></p></div>';
to:
echo '<div id="wordfenceAutoUpdateChoice" class="error"><p><strong>Do you want Wordfence to stay up-to-date automatically?</strong> <a href="#" onclick="wordfenceExt.autoUpdateChoice(\'yes\'); return false;">Yes, enable auto-update.</a> | <a href="#" onclick="wordfenceExt.autoUpdateChoice(\'no\'); return false;">No thanks.</a></p></div>';
Dave
ok, thanks for your reply.
but an future update would overwrite the changes, right?
is this really necessary to use this class?
my solution is an custom css style in an own separate file.
Hi again,
Yes the changes that you make to Wordfence will be overwritten on an update.
The fade class that Wordfence uses has its own purpose, it causes the element to fade-out when it is dismissed.
I’ll bring this up with the Wordfence team to see if they could perhaps change the class-name to something less generic.
Dave
thank you Dave..
I think an less generic name would be the best solution.