• Resolved jiggaman

    (@jiggaman)


    If the plugin enqueue the scripts with the plugins_url then this works great! But many people are defining a url one time and then using the defined url during the enqueuing process…making your plugin not work. One very popular plugin that breaks is elegantthemes.com bloom plugin

    Could you possibly address this, would love to use it rather than having to adjust code in other plugins.

    example problem issue:

    define(ET_BLOOM_PLUGIN_URI, plugins_url('bloom/'));
    wp_register_script( 'et_bloom-uniform-js', ET_BLOOM_PLUGIN_URI . '/js/jquery.uniform.min.js', array( 'jquery' ), $this->plugin_version, true );

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Paul

    (@paultgoodchild)

    this falls way outside the current scope of the plugin. With the way this is setup, there is very little that can be done about this due to the nature of the problem. I can’t think of a simple way to fix this.

    Plugins don’t need to use constants to define things like URLs. It’s pointless and wasteful. I suggest you ask the plugin vendors to declare their URLs or definitions a little later in the WordPress processing.

    I can’t think of a reason why they can’t put this URL processing into a much later stage in the WordPress load.

    This is unsolvable from my side, sorry.

Viewing 1 replies (of 1 total)

The topic ‘Tried using…but having issues with certain plugins’ is closed to new replies.