WordPress.org

Plugin Directory

Changeset 1571584


Ignore:
Timestamp:
01/10/17 01:59:04 (4 months ago)
Author:
dancameron
Message:

Deploy version 2.1.4

Location:
sprout-clients
Files:
292 added
5 edited

Legend:

Unmodified
Added
Removed
  • sprout-clients/trunk/Sprout_Clients.php

    r1441398 r1571584  
    3232     * Current version. Should match sprout-invoices.php plugin version. 
    3333     */ 
    34     const SC_VERSION = '2.1.3'; 
     34    const SC_VERSION = '2.1.4'; 
    3535    /** 
    3636     * DB Version 
  • sprout-clients/trunk/changelog.txt

    r1441398 r1571584  
     1= 2.1.4 = 
     2 
     3* FIX: Select2 Compat issues with themes and other plugins 
     4 
    15= 2.1.3 = 
    26 
  • sprout-clients/trunk/controllers/compat/Compatibility.php

    r1441398 r1571584  
    1010 
    1111    public static function init() { 
     12        // attempt to kill all select2 registrations on si_admin pages 
     13        add_action( 'init', array( __CLASS__, 'deregister_select2' ), PHP_INT_MAX ); 
     14        // atttempt to kill all select2 registrations on si_admin pages REALLY LATE 
     15        add_action( 'wp_print_scripts', array( __CLASS__, 'deenqueue_select2' ), PHP_INT_MAX ); 
     16 
    1217        // WP SEO 
    1318        add_filter( 'init', array( __CLASS__, 'prevent_wpseo_from_being_assholes_about_admin_columns' ), 10 ); 
     
    3742 
    3843        add_action( 'parse_query', array( __CLASS__, 'remove_seo_header_stuff' ) ); 
     44    } 
     45 
     46    public static function deregister_select2() { 
     47        if ( self::is_sc_admin() ) { 
     48            wp_deregister_script( 'select2' ); 
     49            wp_deregister_style( 'select2' ); 
     50            // Register the SI version with the old handle 
     51            wp_register_style( 'select2', SC_URL . '/resources/admin/plugins/select2/css/select2.min.css', null, self::SC_VERSION, false ); 
     52            wp_register_script( 'select2', SC_URL . '/resources/admin/plugins/select2/js/select2.min.js', array( 'jquery' ), self::SC_VERSION, false ); 
     53 
     54            wp_deregister_script( 'select2_4.0' ); 
     55            wp_deregister_style( 'select2_4.0_css' ); 
     56        } 
     57    } 
     58 
     59    public static function deenqueue_select2() { 
     60        if ( self::is_sc_admin() ) { 
     61            foreach ( wp_scripts()->queue as $handle ) { 
     62                if ( strpos( $handle, 'select2' ) !== false && 'select2_4.0' !== $handle ) { 
     63                    wp_dequeue_script( $handle ); 
     64                    // Register the SI version with the old handle 
     65                    wp_register_script( 'select2', SC_URL . '/resources/admin/plugins/select2/js/select2.min.js', array( 'jquery' ), self::SC_VERSION, false ); 
     66 
     67                } 
     68            } 
     69 
     70            foreach ( wp_styles()->queue as $handle ) { 
     71                if ( strpos( $handle, 'select2' ) !== false && 'select2_4.0_css' !== $handle ) { 
     72                    wp_dequeue_style( $handle ); 
     73                    wp_register_style( 'select2', SC_URL . '/resources/admin/plugins/select2/css/select2.min.css', null, self::SC_VERSION, false ); 
     74                } 
     75            } 
     76        } 
    3977    } 
    4078 
  • sprout-clients/trunk/readme.txt

    r1547676 r1571584  
    55Requires at least: 4.4 
    66Tested up to: 4.7 
    7 Stable tag: 2.1.3 
     7Stable tag: 2.1.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • sprout-clients/trunk/sprout-clients.php

    r1441398 r1571584  
    55 * Description: Contact relationship management to increase productivity in gaining clients and business relationships. 
    66 * Author: Sprout Apps 
    7  * Version: 2.1.3 
     7 * Version: 2.1.4 
    88 * Author URI: https://sproutapps.co 
    99 * Text Domain: sprout-invoices 
Note: See TracChangeset for help on using the changeset viewer.