WordPress.org

Support

Support » Plugins and Hacks » WP PageNavi Style » Conflict with WordPress 3.5 Javascript

Conflict with WordPress 3.5 Javascript

  • 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/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with WordPress 3.5 Javascript’ is closed to new replies.
Skip to toolbar