• Replacing line 95:

    wp_enqueue_style( 'snack-bar', WP_PLUGIN_URL . "/snack-bar/snack-bar$suffix.css", array(), '20101112' );

    With this:

    wp_enqueue_style( 'snack-bar', plugins_url( "snack-bar$suffix.css", __FILE__ ), array(), '20101112' );

    Fixes an issue we’ve been having with using this in mu-plugins ( PHP file including the main plugin file so we can have subdirs ).

    The WP_PLUGIN_URL constant is marked as deprecated and should be removed

    https://www.ads-software.com/plugins/snack-bar/

  • The topic ‘WP_PLUGIN_URL’ is closed to new replies.