• Resolved Vladimir Bender

    (@vovastik)


    Crop Thumbnails conflict with popular plugin LearnPress: after CT activation some LP functions became unavailable – course’s permalink and attached lessons.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi there,
    i am sorry – i had a look on the problem and i think the problem is the side of the LearnPress plugin.

    We both uses the same javascript-library but the programmers of learnpress add functions to there library-version (which is bad practice on an multi-plugin-system). So the unchanged library (that i included) overrides the library of learnpress and they cant use there special functions anymore, which lead to an JS Error. This can be fixed by keep the learnpress code seperating from the library code.

    I opened a ticket on there github about the problem:
    https://github.com/LearnPress/learnpress/issues/345

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    I found a quick and dirty solution to get both plugins loading. I will post the solution after the next release.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi,
    add the following code to your functions.php

    
    add_action( 'admin_print_scripts', function() {
    	wp_enqueue_script('cpt_vue','/fake_url.js');
    },1);
    

    This will override the vuejs-library include of my plugin with a fake url, so only the vuejs-library of learnpress will be loaded. Use version >= 1.2.4 of my plugin.

    ATTENTION: i can not ensure you that my plugin will be running smoothly after the change (but i tested, an it looks normal for me).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Сonflict with LearnPress plugin’ is closed to new replies.