Plugin Directory

Changeset 3459839


Ignore:
Timestamp:
02/12/2026 11:08:50 AM (6 weeks ago)
Author:
cookiebot
Message:

Releasing version 4.6.4

Location:
cookiebot/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cookiebot/trunk/assets/js/backend/network-settings-page.js

    r3399794 r3459839  
    8080    }
    8181
    82     // Validate that the field has exactly 14 or 36 characters
     82    // Validate that the field has exactly 9, 14 or 36 characters
    8383    const fieldLength = cbidField.val().length;
    84     if(fieldLength !== 14 && fieldLength !== 36){
     84    if(fieldLength !== 9 && fieldLength !== 14 && fieldLength !== 36){
    8585        cbidCheck.removeClass('check-pass');
    8686        cbidRulesetSelector.addClass('hidden');
  • cookiebot/trunk/assets/js/backend/settings-page.js

    r3399794 r3459839  
    6565    }
    6666
    67     // Validate that the field has exactly 14 or 36 characters
     67    // Validate that the field has exactly 9, 14 or 36 characters
    6868    const fieldLength = cbidField.val().length;
    69     if(fieldLength !== 14 && fieldLength !== 36){
     69    if(fieldLength !== 9 && fieldLength !== 14 && fieldLength !== 36){
    7070        cbidCheck.removeClass('check-pass');
    7171        cbidRulesetSelector.addClass('hidden');
     
    177177
    178178function submitEnable() {
    179     const initialValues = jQuery('input[name!=_wp_http_referer]','form').serialize();
     179    const initialValues = jQuery(':input[name!=_wp_http_referer]','form').serialize();
    180180    const events = {
    181181        change: 'input:not([type=text]), select',
     
    193193function checkValues(initialValues){
    194194    let submitBtn = jQuery('.cb-settings__header p.submit #submit');
    195     let newValues = jQuery('input[name!=_wp_http_referer]','form').serialize();
     195    let newValues = jQuery(':input[name!=_wp_http_referer]','form').serialize();
    196196    if(newValues !== initialValues) {
    197197        submitBtn.addClass('enabled');
     
    350350
    351351function removeRestriction(){
    352     const initialValues = jQuery('input[name!=_wp_http_referer]','form').serialize();
     352    const initialValues = jQuery(':input[name!=_wp_http_referer]','form').serialize();
    353353    let submitBtn = jQuery('.cb-settings__header p.submit #submit');
    354354    jQuery(document).on('click','.cb-settings__vendor__restrictions .remove__restriction', function(){
     
    369369            restriction.remove();
    370370        }
    371         let newValues = jQuery('input[name!=_wp_http_referer]','form').serialize();
     371        let newValues = jQuery(':input[name!=_wp_http_referer]','form').serialize();
    372372        if(newValues !== initialValues) {
    373373            submitBtn.addClass('enabled');
  • cookiebot/trunk/readme.txt

    r3447832 r3459839  
    163163## Changelog ##
    164164**Cookiebot by Usercentrics Plugin will soon no longer support PHP 5. If your website still runs on this version we recommend upgrading so you can continue enjoying the features Cookiebot by Usercentrics offers.**
     165
     166### 4.6.4 ###
     167Release date: February 12th 2026
     168
     169Cookiebot by Usercentrics version 4.6.4 is out! This release has an improvement and a bugfix
     170
     171####Improvements####
     172
     173* Added support for 9-character Settings IDs in the account connection field
     174
     175####Bugfixes####
     176
     177* Fixed form change detection on the settings page to track all input types
    165178
    166179### 4.6.3 ###
  • cookiebot/trunk/src/lib/Cookiebot_Activated.php

    r3447830 r3459839  
    8888        $enabled = get_option( 'cookiebot-banner-enabled', 'default' );
    8989        $cbid    = Cookiebot_WP::get_cbid();
    90        
     90
    9191        // Set to enabled if it's a fresh install (default)
    9292        if ( $enabled === 'default' ) {
     
    9494            update_option( 'cookiebot-banner-enabled', $enabled );
    9595        }
    96        
     96
    9797        // If banner is disabled but CBID is configured, it was disabled by hosting or plugin update. Re-enable it.
    9898        if ( $enabled === '0' && ! empty( $cbid ) ) {
  • cookiebot/trunk/src/lib/script_loader_tag/Script_Loader_Tag.php

    r3447830 r3459839  
    112112        // First, check if this script requires consent (registered via add_tag)
    113113        $handle = $this->extract_handle_from_attributes( $attributes );
    114        
     114
    115115        if ( $handle && array_key_exists( $handle, $this->tags ) && ! empty( $this->tags[ $handle ] ) ) {
    116116            $attributes['type']               = 'text/plain';
     
    142142        // Check if inline script belongs to a consent-required parent script
    143143        $base_handle = $this->extract_base_id_from_inline_id( $attributes['id'] );
    144        
     144
    145145        if ( $base_handle && array_key_exists( $base_handle, $this->tags ) && ! empty( $this->tags[ $base_handle ] ) ) {
    146146            $attributes['type']               = 'text/plain';
  • cookiebot/trunk/src/view/admin/cb_frame/settings/general-page.php

    r3399794 r3459839  
    8282                <div class="cookiebot-cbid-error-container">
    8383                    <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
    84                         <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
     84                        <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
    8585                    </div>
    8686                </div>
  • cookiebot/trunk/src/view/admin/common/network-settings-page.php

    r3399794 r3459839  
    6262                                    <div class="cookiebot-cbid-container">
    6363                                        <div class="cookiebot-cbid-input">
    64                                             <input placeholder="<14 chars> or <36 chars>"
     64                                            <input placeholder="9, 14 or 36 characters"
    6565                                                    type="text" id="cookiebot-cbid" class="initial-cbid-setup"
    6666                                                    name="cookiebot-cbid"
     
    7070                                        <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?>
    7171                                        <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
    72                                             <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
     72                                            <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
    7373                                        </div>
    7474                                    </div>
  • cookiebot/trunk/src/view/admin/common/settings-page.php

    r3399794 r3459839  
    6666                                    <div class="cookiebot-cbid-container">
    6767                                        <div class="cookiebot-cbid-input">
    68                                             <input placeholder="<14 chars> or <36 chars>"
     68                                            <input placeholder="9, 14 or 36 characters"
    6969                                                type="text" id="cookiebot-cbid" class="initial-cbid-setup"
    7070                                                name="cookiebot-cbid"
     
    7474                                        <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?>
    7575                                        <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
    76                                             <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
     76                                            <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
    7777                                        </div>
    7878                                    </div>
  • cookiebot/trunk/src/view/admin/uc_frame/settings/general-page.php

    r3399794 r3459839  
    101101                <div class="cookiebot-cbid-error-container">
    102102                    <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
    103                         <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
     103                        <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
    104104                    </div>
    105105                </div>
Note: See TracChangeset for help on using the changeset viewer.