Support » Plugin: Google Hosted AJAX Libraries » [Plugin: Google Hosted AJAX Libraries] Admin Menu WP 3

  • boonjackmedia


    I had an issue with a client which had this google hosted ajax libraries plugin installed, their Menu buttons in the Admin on WordPress version 3.0.1 (and after upgrade to current version) wasn’t working as should, they couldn’t use the drag and drop feature.

    I found that load-scripts.php was returning an error: jquery not defined,,nav-menu&ver=b4ab61fe95b1fa1cf903d335317681e9

    There wasn’t anything that looked funky with this plugin. It also it provides support for Admin functions. However, I read on Stack Exchange that WP Admin concatenates scripts in admin area by default.

    Here’s the simple and easy fix, in your WordPress Admin, goto the Plugin page, find the google-hosted-ajax-libraries plugin then click editor.

    On line 37 to 39 replace this:
    `foreach($this->settings as $slug => $url) {
    wp_deregister_script( $slug );

    With this:
    `global $concatenate_scripts;
    $concatenate_scripts = false;
    foreach($this->settings as $slug => $url) {
    wp_deregister_script( $slug );
    wp_register_script( $slug,$url );`

    Click save and now your’re set.


Viewing 1 replies (of 1 total)
  • Plugin Author w3prodigy


    Hey Mike, sorry for the delay and thanks for the update – I didn’t even think about how my plugin interacted with the admin, complete fail on my part.

    I’ve actually made an update to fix this, different than your proposal, which simply stops my the plugin from affecting the admin section. After all, my plugin is meant for the front-end loading optimization so I believe letting the admin run naturally would be the best scenario.

    Thanks again for pointing this out and sorry for the delay.

    – Jay

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google Hosted AJAX Libraries] Admin Menu WP 3’ is closed to new replies.