Support » Plugin: Just Custom Fields » jQeuery Error “.live is not a function”

  • Resolved netzgestaltung

    (@netzgestaltung)


    Hi there,

    i think wordpress kicked out the jquery-migrations plugin so all occurences of “.live” should be changed to “.on”

    I get this error when i try to add a field to a fieldset of a post type:

    Uncaught TypeError: jQuery(...).live is not a function
    .../wp-content/plugins/just-custom-fields/assets/just_custom_fields.js?ver=5.5:95

    in there you have:

    // init delete button on change popup
      jQuery('#jcf_ajax_content .jcf_edit_fieldset a.field-control-remove').live('click', function() {
    ...

    as quick fix you can enqueue the jquery migrations plugin with your plugin

    kind regards
    tom

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.