Plugin Directory

Changeset 732226


Ignore:
Timestamp:
06/26/2013 04:12:37 PM (13 years ago)
Author:
marckocher
Message:

fixing a bug in the path to the JS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skip-to/trunk/skipTo.php

    r728610 r732226  
    1010*/
    1111
     12    $skipTo_url = 'http://paypal.github.io/SkipTo/downloads/js/SkipTo.min.js';
     13
    1214    function skipto_load_js_and_css() {
     15        global $skipTo_url;
    1316
    14         wp_register_script( 'skipInit.js', plugins_url( 'skipTo/js/skipToInit.js' , dirname(__FILE__) ), '', '1.1', true);
     17        wp_register_script( 'skipInit.js', plugins_url( 'skip-to/js/skipToInit.js' , dirname(__FILE__) ), '', '1.1', true);
    1518        wp_enqueue_script( 'skipInit.js' );
    1619
    17         wp_register_script( 'SkipTo.js', plugins_url( 'skipTo/js/SkipTo.min.js' , dirname(__FILE__) ), '', '1.1', true);
     20        wp_register_script( 'SkipTo.js', $skipTo_url, '', '1.1', true);
    1821        wp_enqueue_script( 'SkipTo.js' );
    1922    }
Note: See TracChangeset for help on using the changeset viewer.