• Great plugin- noticed one issue while debugging. I was getting a notice for an undefined constant __DIR__ on line 63 of widget_context.php. __DIR__ just needs to be a string. Here’s the updated line:

    wp_enqueue_style( 'widget-context-admin', WP_CONTENT_URL . '/plugins/'. basename('__DIR__') . '/admin-style.css' );

    Thanks for the great plugin again!

    https://www.ads-software.com/extend/plugins/widget-context/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve just been about to test this plugin, but I am also getting the error:

    Notice: Use of undefined constant __DIR__ – assumed ‘__DIR__’ in …/wp-content/plugins/widget-context/widget-context.php on line 63

    Are you about to fix this, please?

    [ Signature moderated. ]

    I am noticing the same issue.
    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined Constant PHP Notice’ is closed to new replies.