• Plugin version: 2.4.5

    Redirection.js got included before jquery. And then I got error:
    TypeError: this.$(…).find(…).ajaxForm is not a function

    I added fifth element to wp_enqueue_script() function:
    wp_enqueue_script( 'redirection', plugin_dir_url( REDIRECTION_FILE ).'redirection.js', array( 'jquery-form', 'jquery-ui-sortable' ), $version, true );

    Fifthe element “true” makes this script to load in footer. So this means it will load after jquery.
    This fixed problem for me. Without it when I added a new redirection I got redirected to json. And I could not delete redirection.

The topic ‘Wrong script including queue’ is closed to new replies.