Plugin Directory

Changeset 1434142


Ignore:
Timestamp:
06/09/2016 08:18:47 PM (10 years ago)
Author:
healcode_wordpress
Message:

Merge pull request #22 from healcode/wp-hooks

Update JS enqueuing to best practice

Location:
healcode-mindbody-widget/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • healcode-mindbody-widget/trunk/hc-editor-plugin.php

    r1433465 r1434142  
    66
    77    public function __construct() {
    8       wp_enqueue_script('hc_media_script', plugins_url('/js/healcode-wp-mb-widget.js', __FILE__), array('jquery'), '1.1.7', true);
    98      add_action( 'init', array($this, 'init') );
    109    }
     
    1817        add_action('media_buttons', array($this, 'add_hc_media_button'));
    1918      }
     19    }
     20
     21    public function include_hc_media_button_js() {
     22      wp_enqueue_script('hc_media_script', plugins_url('/js/healcode-wp-mb-widget.js', __FILE__), array('jquery'), '1.1.8', true);
    2023    }
    2124
     
    5255if(!isset($HealcodeShortcodeContainer)){
    5356  $HealcodeShortcodeContainer = new HealcodeShortcodeContainer();
     57  add_action('wp_enqueue_media', array($HealcodeShortcodeContainer, 'include_hc_media_button_js'));
    5458  add_action('admin_head', array($HealcodeShortcodeContainer, 'get_shortcodes'));
    5559  add_action('admin_head', array($HealcodeShortcodeContainer, 'add_shortcodes_container'));
  • healcode-mindbody-widget/trunk/healcode-mb-widget.php

    r1433465 r1434142  
    44Plugin URI: https://wordpress.org/plugins/healcode-mb-widget/
    55Description: Add HealCode Widgets to your WordPress website. This plugin lets you generate a shortcode for a widget. The shortcodes can be used in your pages, posts and widgets.
    6 Version: 1.1.8
     6Version: 1.1.9
    77Author: HealCode
    88Author URI: http://www.healcode.com/
  • healcode-mindbody-widget/trunk/readme.txt

    r1433465 r1434142  
    55Requires at least: 3.0
    66Tested up to: 4.5
    7 Stable tag: 1.1.8
     7Stable tag: 1.1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    231231== Changelog ==
    232232
     233= 1.1.9 =
     234* Update JS enqueuing to best practice
    233235= 1.1.8 =
    234236* Fix initial load for first time installers
     
    274276== Upgrade Notice ==
    275277
     278= 1.1.9 =
     279* Update JS enqueuing to best practice
    276280= 1.1.8 =
    277281* Fix initial load for first time installers
Note: See TracChangeset for help on using the changeset viewer.