WordPress.org

Plugin Directory

Changeset 1534883


Ignore:
Timestamp:
11/16/16 09:47:15 (14 months ago)
Author:
camilstaps
Message:

1.2.10: possible fix for enqueueing scripts

Location:
nano-stats
Files:
14 added
2 edited

Legend:

Unmodified
Added
Removed
  • nano-stats/trunk/nanostats.php

    r1529818 r1534883  
    44Plugin URI: http://wordpress.camilstaps.nl/plugins/nano-stats/ 
    55Description: Allows you to show your NaNoWriMo Stats in posts, pages and sidebar widgets. 
    6 Version: 1.2.9 
     6Version: 1.2.10 
    77Author: Camil Staps 
    88Author URI: http://camilstaps.nl 
     
    7070    } 
    7171} 
     72 
     73/* JS hooks */ 
     74 
     75function nanostats_enqueue() { 
     76        wp_enqueue_script('jquery'); 
     77        wp_enqueue_script('jqplot.min',plugins_url().'/nano-stats/jquery.jqplot.min.js'); 
     78        wp_enqueue_script('jqplot.barRenderer.min',plugins_url().'/nano-stats/jqplot.barRenderer.min.js'); 
     79        wp_enqueue_script('jqplot.categoryAxisRenderer.min',plugins_url().'/nano-stats/jqplot.categoryAxisRenderer.min.js'); 
     80        wp_enqueue_script('jqplot.canvasAxisTickRenderer.min',plugins_url().'/nano-stats/jqplot.canvasAxisTickRenderer.min.js'); 
     81        wp_enqueue_script('jqplot.canvasTextRenderer.min',plugins_url().'/nano-stats/jqplot.canvasTextRenderer.min.js'); 
     82        wp_enqueue_script('jqplot.highlighter.min',plugins_url().'/nano-stats/jqplot.highlighter.min.js'); 
     83} 
     84 
     85add_action('init', 'nanostats_enqueue'); 
    7286 
    7387/* SHORTCODE */ 
     
    265279        $showseriesoptions = '['.substr($showseriesoptions,1).']'; 
    266280         
    267         wp_enqueue_script('jquery'); 
    268         wp_enqueue_script('jqplot.min',plugins_url().'/nano-stats/jquery.jqplot.min.js'); 
    269         wp_enqueue_script('jqplot.barRenderer.min',plugins_url().'/nano-stats/jqplot.barRenderer.min.js'); 
    270         wp_enqueue_script('jqplot.categoryAxisRenderer.min',plugins_url().'/nano-stats/jqplot.categoryAxisRenderer.min.js'); 
    271         wp_enqueue_script('jqplot.canvasAxisTickRenderer.min',plugins_url().'/nano-stats/jqplot.canvasAxisTickRenderer.min.js'); 
    272         wp_enqueue_script('jqplot.canvasTextRenderer.min',plugins_url().'/nano-stats/jqplot.canvasTextRenderer.min.js'); 
    273         wp_enqueue_script('jqplot.highlighter.min',plugins_url().'/nano-stats/jqplot.highlighter.min.js'); 
    274          
    275281        $return = ' 
    276282        <link class="include" rel="stylesheet" type="text/css" href="'.plugin_dir_url(__FILE__).'jquery.jqplot.min.css" /> 
  • nano-stats/trunk/readme.txt

    r1529809 r1534883  
    55Requires at least: 2.5 
    66Tested up to: 4.6 
    7 Stable tag: 1.2.9 
     7Stable tag: 1.2.10 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    4141 
    4242== Changelog == 
     43 
     44= 1.2.10 = 
     45* Possible fix for issue with enqueueing scripts 
    4346 
    4447= 1.2.9 = 
Note: See TracChangeset for help on using the changeset viewer.