• Resolved SharmPRO

    (@sharmpro)


    Hi, there is a conflict with script backbone.marionette.min.js as his handle is ‘marionette’ and WP 5.2.2 (Pods 2.7.14) does already use that handle name.

    I found a solution just changing the handle name to ‘backbone-marionette’ in classes/PodsInit.php line 320 and 330

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SharmPRO

    (@sharmpro)

    Found a fix!

    File: /wp-content/plugins/pods/classes/PodsInit.php
    Line: 321 – 346

    wp_register_script(
    /*—>*/’backbone-marionette’,
    PODS_URL . ‘ui/js/marionette/backbone.marionette.min.js’,
    array(
    ‘backbone’,
    ‘backbone.radio’,
    ), ‘3.3.1’, true
    );
    wp_add_inline_script(
    /*—>*/ ‘backbone-marionette’,
    /*—>*/ ‘PodsMn=Backbone.Marionette=Marionette;PodsMn.Object=PodsMn.MnObject;’
    );

    // MV stuff
    wp_register_script(
    ‘pods-dfv’, PODS_URL . ‘ui/js/pods-dfv/pods-dfv.min.js’, array(
    ‘jquery’,
    ‘jquery-ui-core’,
    ‘jquery-ui-sortable’,
    ‘pods-i18n’,
    /*—>*/ ‘backbone-marionette’,
    ‘media-views’,
    ‘media-models’,
    ), PODS_VERSION, true
    );

    Plugin Contributor Jim True

    (@jimtrue)

    You should probably report this one as a Bug Report:
    https://github.com/pods-framework/pods/issues/new

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Backbone Marionette conflict WP 4.22’ is closed to new replies.