WordPress.org

Ready to get started?Download WordPress

Forums

WP PageNavi Style
Conflict with WordPress 3.5 Javascript (2 posts)

  1. brasofilo
    Member
    Posted 1 year ago #

    WordPress HoverIntent is not working when viewing the plugin page. Meaning: when you pass over the admin menus, the submenus don't show up.

    Doesn't break anything, it's a semi-bug.

    TypeError: c.on is not a function
    ...ventDefault();c.find("li.opensub").removeClass("opensub");k.addClass("opensub")}...

    The conflict is with this file:
    /wp-admin/load-scripts.php?c=1&load[]=admin-bar,hoverIntent,common&ver=3.5
    http://wordpress.org/extend/plugins/wp-pagenavi-style/

  2. brasofilo
    Member
    Posted 1 year ago #

    Yes, it is breaking the modal window in the Media Library page (/wp-admin/upload.php).
    When you click "Attach" in an item, the modal doesn't fully load.

    I don't know how the plugin is being able to break another admin page. But I noticed that the scripts and styles are being loaded wrongly.

    Please check:
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_scripts_only_on_plugin_pages

    Also, the plugin is bundled with jQuery 1.5... WordPress already comes with the latest jQuery version, no need of using a static and old version. Which probably is the cause of the bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags