Plugin Directory

Changeset 3326158


Ignore:
Timestamp:
07/11/2025 09:30:01 AM (6 months ago)
Author:
pacotole
Message:

tagging version 6.0.6

Location:
creame-whatsapp-me
Files:
7 deleted
3 edited
78 copied

Legend:

Unmodified
Added
Removed
  • creame-whatsapp-me/tags/6.0.6/README.txt

    r3321162 r3326158  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 6.0.5
     8Stable tag: 6.0.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    391391== Changelog ==
    392392
     393= 6.0.6 =
     394* Aff a filter for Litespeed Cache plugin to ensure Joinchat JS/CSS assets version. Prevent Joinchat break layout if visitor has Joinchat v5 cached assets (thanks to @tendenzeshabbychic and @qtwrk).
     395
    393396= 6.0.5 =
    394 * Fix transparent background color if only floating button without chatbox.
     397* Fix CSS transparent background color if only floating button without chatbox.
    395398
    396399= 6.0.4 =
  • creame-whatsapp-me/tags/6.0.6/includes/class-joinchat-integrations.php

    r3062784 r3326158  
    7676         */
    7777        add_filter( 'rocket_rucss_external_exclusions', array( $this, 'rocket_rucss_external_exclusions' ) );
     78
     79        /**
     80         * LiteSpeed Cache
     81         */
     82        add_filter( 'litespeed_buffer_after', array( $this, 'ensure_joinchat_assets_version' ) );
    7883
    7984        /**
     
    164169    public function rocket_rucss_external_exclusions( $external_exclusions = array() ) {
    165170
    166         $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    167 
    168171        $files = array(
    169             plugins_url( "public/css/joinchat{$min}.css", JOINCHAT_FILE ),
    170             plugins_url( "public/css/joinchat-btn{$min}.css", JOINCHAT_FILE ),
    171             plugins_url( "public/css/joinchat-woo{$min}.css", JOINCHAT_FILE ),
     172            plugins_url( 'public/css/joinchat.min.css', JOINCHAT_FILE ),
     173            plugins_url( 'public/css/joinchat-btn.min.css', JOINCHAT_FILE ),
     174            plugins_url( 'public/css/joinchat-woo.min.css', JOINCHAT_FILE ),
    172175        );
    173176
     
    197200
    198201    }
     202
     203    /**
     204     * Ensure Joinchat assets version is correct with LiteSpeed Cache plugin.
     205     *
     206     * @since    6.0.6
     207     * @param string $content HTML content.
     208     * @return string
     209     */
     210    public function ensure_joinchat_assets_version( $content ) {
     211
     212        if ( ! apply_filters( 'litespeed_conf', 'optm-qs_rm' ) ) {
     213            return $content;
     214        }
     215
     216        $content = str_replace( 'joinchat.min.js', 'joinchat.min.js?ver=' . JOINCHAT_VERSION, $content );
     217        $content = str_replace( 'joinchat.min.css', 'joinchat.min.css?ver=' . JOINCHAT_VERSION, $content );
     218        $content = str_replace( 'joinchat-btn.min.css', 'joinchat-btn.min.css?ver=' . JOINCHAT_VERSION, $content );
     219
     220        return $content;
     221    }
    199222}
  • creame-whatsapp-me/tags/6.0.6/joinchat.php

    r3321162 r3326158  
    1111 * Plugin URI:        https://join.chat
    1212 * Description:       Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
    13  * Version:           6.0.5
     13 * Version:           6.0.6
    1414 * Author:            Creame
    1515 * Author URI:        https://crea.me
     
    2828 * Define constants.
    2929 */
    30 define( 'JOINCHAT_VERSION', '6.0.5' );
     30define( 'JOINCHAT_VERSION', '6.0.6' );
    3131define( 'JOINCHAT_SLUG', 'joinchat' );
    3232define( 'JOINCHAT_FILE', __FILE__ );
  • creame-whatsapp-me/trunk/README.txt

    r3321162 r3326158  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 6.0.5
     8Stable tag: 6.0.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    391391== Changelog ==
    392392
     393= 6.0.6 =
     394* Aff a filter for Litespeed Cache plugin to ensure Joinchat JS/CSS assets version. Prevent Joinchat break layout if visitor has Joinchat v5 cached assets (thanks to @tendenzeshabbychic and @qtwrk).
     395
    393396= 6.0.5 =
    394 * Fix transparent background color if only floating button without chatbox.
     397* Fix CSS transparent background color if only floating button without chatbox.
    395398
    396399= 6.0.4 =
  • creame-whatsapp-me/trunk/includes/class-joinchat-integrations.php

    r3062784 r3326158  
    7676         */
    7777        add_filter( 'rocket_rucss_external_exclusions', array( $this, 'rocket_rucss_external_exclusions' ) );
     78
     79        /**
     80         * LiteSpeed Cache
     81         */
     82        add_filter( 'litespeed_buffer_after', array( $this, 'ensure_joinchat_assets_version' ) );
    7883
    7984        /**
     
    164169    public function rocket_rucss_external_exclusions( $external_exclusions = array() ) {
    165170
    166         $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    167 
    168171        $files = array(
    169             plugins_url( "public/css/joinchat{$min}.css", JOINCHAT_FILE ),
    170             plugins_url( "public/css/joinchat-btn{$min}.css", JOINCHAT_FILE ),
    171             plugins_url( "public/css/joinchat-woo{$min}.css", JOINCHAT_FILE ),
     172            plugins_url( 'public/css/joinchat.min.css', JOINCHAT_FILE ),
     173            plugins_url( 'public/css/joinchat-btn.min.css', JOINCHAT_FILE ),
     174            plugins_url( 'public/css/joinchat-woo.min.css', JOINCHAT_FILE ),
    172175        );
    173176
     
    197200
    198201    }
     202
     203    /**
     204     * Ensure Joinchat assets version is correct with LiteSpeed Cache plugin.
     205     *
     206     * @since    6.0.6
     207     * @param string $content HTML content.
     208     * @return string
     209     */
     210    public function ensure_joinchat_assets_version( $content ) {
     211
     212        if ( ! apply_filters( 'litespeed_conf', 'optm-qs_rm' ) ) {
     213            return $content;
     214        }
     215
     216        $content = str_replace( 'joinchat.min.js', 'joinchat.min.js?ver=' . JOINCHAT_VERSION, $content );
     217        $content = str_replace( 'joinchat.min.css', 'joinchat.min.css?ver=' . JOINCHAT_VERSION, $content );
     218        $content = str_replace( 'joinchat-btn.min.css', 'joinchat-btn.min.css?ver=' . JOINCHAT_VERSION, $content );
     219
     220        return $content;
     221    }
    199222}
  • creame-whatsapp-me/trunk/joinchat.php

    r3321162 r3326158  
    1111 * Plugin URI:        https://join.chat
    1212 * Description:       Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
    13  * Version:           6.0.5
     13 * Version:           6.0.6
    1414 * Author:            Creame
    1515 * Author URI:        https://crea.me
     
    2828 * Define constants.
    2929 */
    30 define( 'JOINCHAT_VERSION', '6.0.5' );
     30define( 'JOINCHAT_VERSION', '6.0.6' );
    3131define( 'JOINCHAT_SLUG', 'joinchat' );
    3232define( 'JOINCHAT_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.