Theme Author
Tom
(@edge22)
Which one isn’t working right now?
Theme Author
Tom
(@edge22)
Try this:
add_filter( 'generate_copyright', function() {
if ( get_locale() == 'ru_RU' ) : ?>
—RU content—
<?php endif;
if ( get_locale() == 'en_US' ) : ?>
—EN Content—
<?php endif;
if ( get_locale() == 'uz_UZ' ) : ?>
—UZ Content—
<?php endif;
} );
Let me know 🙂
GREAT!
Thank you a lot!
I also have some issue with pcrisk – it says 8 files potentially hazardous – like index file and some others.
Should I open a new topic for this or can i write here?
Theme Author
Tom
(@edge22)
If you have malicious code in any of your files, you should replace them with clean ones and then change all of your passwords/make sure your plugins are up to date.
we had some malicious code before at old site version.
after that i made new site on gp, deleted old site and uploaded new one.
bat i found one task in scheduler and i guess this task activated again after uploading new site.
i deleted that task.
but i think that task somehow damaged these 8 files, also 3 or 4 folders appeared on hosting and i can not delete that folders – error can not delete……
the point is i have almost zero knowledge of coding and i dont inderstand how can i replace the files you pointed because for example index.ru has been changed – i made main page with gutenberg builer and if replace the index.ru it will clean?
Theme Author
Tom
(@edge22)
If you’re unable to remove files on your server, you should talk to your hosting as it’s likely a permissions issue that they’ll be able to fix.
It would also be in their best interest to clean up any malicious code on your server for you, as that kind of stuff can find its way onto other websites if you’re using a shared server.
I talked to hosting – they said they just provide hosting and that’s it.
I checked the site with scanner.pcrisk.com – it found 55 Potentially suspicious files.
Details says:
Detected potentially suspicious initialization of function pointer to JavaScript method String.fromCharCode __tmpvar1401901460 = String.fromCharCode; <code/>
I checked the code - it mention wp.emojisettings
I found in some website the advice to disable emoji - i did it but no result
I also checked with malCure Malware Removal & Firewall but it found nothing.
I did not install any emoji and i think the gp theme does not contain them also.
Could you give any advice on what to do?
Thanks!
Theme Author
Tom
(@edge22)
WordPress itself adds the emoji script – I doubt it’s malicious, but it depends on the hack your site went through.
Your hosting should at the very least be able to fix any permission issues. If they refuse that, I would be very surprised.