Forum Replies Created

Viewing 1 replies (of 1 total)
  • Steve

    (@stevecordle)

    The problem lies in the following lines: 336-338 in nggallery.php, REMOVE them.

    if (isset($wp_scripts->registered['jquery'])) {
            $wp_scripts->registered['jquery']->src = FALSE;
        }

    If jQuery is registered, set the source to FALSE? Ironically, the function that this set of code is in, is called “fix_jquery()”. At any rate, there is a built in function “wp_script_is()”.

    if(!wp_script_is( 'jquery', 'registered'){
         wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', false, '1.11.0', true );
         wp_enqueue_script('jquery');
    }
Viewing 1 replies (of 1 total)