WordPress.org

Plugin Directory

Changeset 1576874


Ignore:
Timestamp:
01/17/17 22:55:44 (4 months ago)
Author:
dancameron
Message:

Deploy version 4.0.4

Location:
help-scout
Files:
59 added
5 edited

Legend:

Unmodified
Added
Removed
  • help-scout/trunk/HelpScout_Desk.php

    r1547801 r1576874  
    3535     * Current version. Should match help-scout-desk.php plugin version. 
    3636     */ 
    37     const HSD_VERSION = '4.0.3'; 
     37    const HSD_VERSION = '4.0.4'; 
    3838    /** 
    3939     * DB Version 
  • help-scout/trunk/controllers/_Controller.php

    r1514958 r1576874  
    114114 
    115115    public static function register_resources() { 
    116         // Templates 
    117         wp_register_script( 'hsd', HSD_URL . '/resources/front-end/js/hsd.js', array( 'jquery' ), self::HSD_VERSION ); 
    118         wp_register_style( 'hsd', HSD_URL . '/resources/front-end/css/hsd.style.css', array(), self::HSD_VERSION ); 
    119  
    120         if ( file_exists( HSD_URL . '/resources/front-end/plugins/redactor/redactor.min.js' ) ) { 
     116        $fereqjs = array( 'jquery' ); 
     117        $fereqcss = array(); 
     118        if ( file_exists( HSD_PATH . '/resources/front-end/plugins/redactor/redactor.min.js' ) ) { 
    121119            // Redactor 
    122120            wp_register_script( 'redactor', HSD_URL . '/resources/front-end/plugins/redactor/redactor.min.js', array( 'jquery' ), self::HSD_VERSION ); 
    123121            wp_register_style( 'redactor', HSD_URL . '/resources/front-end/plugins/redactor/redactor.css', array(), self::HSD_VERSION ); 
    124         } 
     122 
     123            $fereq = array( 'jquery', 'redactor' ); 
     124            $fereqcss = array( 'redactor' ); 
     125        } 
     126 
     127        // Templates 
     128        wp_register_script( 'hsd', HSD_URL . '/resources/front-end/js/hsd.js', $fereq, self::HSD_VERSION ); 
     129        wp_register_style( 'hsd', HSD_URL . '/resources/front-end/css/hsd.style.css', $fereqcss, self::HSD_VERSION ); 
    125130 
    126131        // Admin 
     
    137142            'readmore' => __( 'Expand message', 'help-scout-desk' ), 
    138143            'close' => __( 'Collapse message', 'help-scout-desk' ), 
    139             'redactor' => true, 
     144            'redactor' => false, 
    140145        ); 
    141         if ( ! file_exists( HSD_URL . '/resources/front-end/plugins/redactor/redactor.min.js' ) ) { 
    142             $hsd_js_object['redactor'] = false; 
     146        if ( file_exists( HSD_PATH . '/resources/front-end/plugins/redactor/redactor.min.js' ) ) { 
     147            $hsd_js_object['redactor'] = true; 
    143148        } 
    144149        wp_localize_script( 'hsd', 'hsd_js_object', apply_filters( 'hsd_scripts_localization', $hsd_js_object ) ); 
  • help-scout/trunk/help-scout.php

    r1547801 r1576874  
    33/** 
    44 * @package Help_Scout_Desk 
    5  * @version 4.0.3 
     5 * @version 4.0.4 
    66 */ 
    77 
     
    1111 * Description: Allows for Help Scout conversations to be easily created on your site, with full beacon support. If you're wanting to display conversations on your site checkout <a href="https://sproutapps.co/help-scout-desk-wordpress-plugin/?utm_medium=link&utm_campaign=hsfree&utm_source=wordpress.org">Help Scout Desk</a>. 
    1212 * Author: Sprout Apps 
    13  * Version: 4.0.3 
     13 * Version: 4.0.4 
    1414 * Author URI: https://sproutapps.co 
    1515 * Text Domain: help-scout-desk 
  • help-scout/trunk/readme.txt

    r1547801 r1576874  
    44Requires at least: 4.0 
    55Tested up to: 4.7 
    6 Stable tag: 4.0.3 
     6Stable tag: 4.0.4 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • help-scout/trunk/resources/front-end/js/hsd.js

    r1514958 r1576874  
    2727                url: hsd_js_object.admin_ajax, 
    2828                type: "POST", 
     29                xhrFields: { 
     30                    withCredentials: true 
     31                }, 
    2932                data: { 
    3033                    action: 'hsd_shortcodes', 
     
    4750                url: hsd_js_object.admin_ajax, 
    4851                type: "POST", 
     52                xhrFields: { 
     53                    withCredentials: true 
     54                }, 
    4955                data: { 
    5056                    action: 'hsd_shortcodes', 
Note: See TracChangeset for help on using the changeset viewer.