• Hi,

    My l10n.php file is continually being flagged by WF scan as changing at line 249 from;

    function __( $text, $domain = 'default' ) {
    return translate( $text, $domain );
    } 

    to;

    if (!function_exists('__')) {
    function __( $text, $domain = 'default' ) {
    return translate( $text, $domain );
    }
    }

    Each time I restore it, it changes back a few days later.

    Has anyone experienced this and have any idea of the culprit?
    I have the same plugins on other sites (different hosts), but the hosting company couldn’t provide much help.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • WFGerroald

    (@wfgerald)

    Hey @andtay2001,

    Unless it’s a WordPress Core update the Core files shouldn’t be getting modified. Do you have any plugins that help with translations? Can you please share a list of the common active plugins?

    Thanks,

    Gerroald

    Thread Starter measureddesigns

    (@andtay2001)

    Hi @wfgerald ,

    The site only has 3 plugins;
    Akismet Anti-Spam (v4.1.3), Wordfence Security (v7.4.1) & Yoast SEO(v12.5).

    However the main site is a Magento 2 build using Fishpig’s WP integration (https://fishpig.co.uk/magento/wordpress-integration/). It shares the header & footer of the main ecommerce site across WP blog pages.

    I do have similar site setups on other hosting without the issue being flagged.

    Thanks

    Andrew

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-includes/l10n.php file changes’ is closed to new replies.