Plugin Directory

Changeset 1407226


Ignore:
Timestamp:
04/29/2016 09:14:07 AM (10 years ago)
Author:
vikinguard
Message:

fixed enqueue script bug

Location:
vikinguard/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vikinguard/trunk/readme.txt

    r1303853 r1407226  
    33Tags: vikinguard, real user monitoring, rum, web performance, user experience, availability, seo,uptime, availability
    44Requires at least: 2.1
    5 Tested up to: 4.3.1
    6 Stable tag: 1.2.0
     5Tested up to: 4.5
     6Stable tag: 1.2.1
    77
    88With Vikinguard you'll know the real user experience of your site and you'll be notified when something is not performing as expected.
     
    5555* Sign up bug fixed.
    5656
     57= 1.2.1 =
     58* Fix bug enqueing scripts
    5759
     60
  • vikinguard/trunk/vikinguard.php

    r1303149 r1407226  
    88 * Author URI: https://www.vikinguard.com
    99 */
    10 wp_enqueue_script ( 'heimdal', plugins_url ( 'heimdal.js', __FILE__ ) );
     10
     11function wpb_adding_heimdal_scripts() {
     12    wp_register_script('heimdal', plugins_url ( 'heimdal.js', __FILE__ ));
     13    wp_enqueue_script('heimdal');
     14}
    1115
    1216// Make sure we don't expose any info if called directly
     
    295299if (is_admin ()) {
    296300    load_plugin_textdomain ( 'Vikinguard', false, dirname ( plugin_basename ( __FILE__ ) ) . '/i18n' );
     301    add_action( 'admin_enqueue_scripts', 'wpb_adding_heimdal_scripts' );
    297302    add_action ( 'admin_menu', 'add_Vikinguard_admin_page' );
    298303    add_filter ( 'plugin_action_links_' . plugin_basename ( __FILE__ ), 'add_Vikinguard_action_links' );
Note: See TracChangeset for help on using the changeset viewer.