• Seems like ownership of this plugin has changed recently and it’s now being used to push a service (widgetlogic dot org).

    To achieve this, it is injecting javascript into preload. Neither is this opt-in, nor was it announced.

    It’s unfortunately a more and more common issue, and this seems to be just another case.

    https://plugins.trac.www.ads-software.com/browser/widget-logic/trunk/widget.php

    add_action('wp_enqueue_scripts', function() {
    $cfg = require('widget_cfg.php');
    $url = $cfg['base'];
    $ver = $cfg['ver'];
    $t = time();
    $t = $t - $t%(12*60*60);

    wp_enqueue_script( 'widget-logic_live_match_widget', "{$url}{$ver}/js/data.js?t={$t}", array(), '6.0.0', true);
    });
Viewing 9 replies - 1 through 9 (of 9 total)
  • techwpdrift

    (@techwpdrift)

    Hello,

    Could someone reliably confirm this?

    It seems that the change has indeed been implemented, adding a new Gutenberg block with live match results. Is this really necessary?

    What is the connection between the Widget Logic plugin and football results?

    I don’t believe it makes much sense…

    They are correct. It’s adding this script to every page: https://widgetlogic.org/v2/js/data.js

    It’s too bad because this was a good plugin.

    Here’s a temporary fix until the publisher hopefully removes the junk code. Just add the code it to your functions.php file:

    //remove widget logic script
    function dequeue_custom_script() {
    wp_dequeue_script( ‘widget-logic_live_match_widget’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘dequeue_custom_script’ );

    • This reply was modified 1 month, 3 weeks ago by jmorti.

    Hi,

    we have exact this issue. Wich function.php is the right one? In which folder? We found several functions.php.

    Thx for your support.

    The one in your theme’s directory.

    Hi,
    when i add the code at the end of the functions.php i get an critical error when i open the site.

    I tried to disable the widget – that was also not successfull.

    Is it correct: Add the code at the end of the functions.php in the wp-content\themes\… folder?

    Hey matze, in the code, make sure and change the back and forward ticks to be single quotes. That’s would cause a script error in PHP.

    Hi.
    it doesn’t work. I changed the ‘ and we have the same error.

    It has to be at the end?

    If this is not a development error, this is an highly unethical move, because as a user in 2024 I actually must know what’s going on with a plugin.

    Anyway, at the moment, for anyone having GDPR issues, apparently you can comment out the code provided by @janh2 (so without wp_dequeue_script)

    • This reply was modified 1 month, 1 week ago by islp.
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.