Changeset 3459839
- Timestamp:
- 02/12/2026 11:08:50 AM (6 weeks ago)
- Location:
- cookiebot/trunk
- Files:
-
- 9 edited
-
assets/js/backend/network-settings-page.js (modified) (1 diff)
-
assets/js/backend/settings-page.js (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
-
src/lib/Cookiebot_Activated.php (modified) (2 diffs)
-
src/lib/script_loader_tag/Script_Loader_Tag.php (modified) (2 diffs)
-
src/view/admin/cb_frame/settings/general-page.php (modified) (1 diff)
-
src/view/admin/common/network-settings-page.php (modified) (2 diffs)
-
src/view/admin/common/settings-page.php (modified) (2 diffs)
-
src/view/admin/uc_frame/settings/general-page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cookiebot/trunk/assets/js/backend/network-settings-page.js
r3399794 r3459839 80 80 } 81 81 82 // Validate that the field has exactly 14 or 36 characters82 // Validate that the field has exactly 9, 14 or 36 characters 83 83 const fieldLength = cbidField.val().length; 84 if(fieldLength !== 14 && fieldLength !== 36){84 if(fieldLength !== 9 && fieldLength !== 14 && fieldLength !== 36){ 85 85 cbidCheck.removeClass('check-pass'); 86 86 cbidRulesetSelector.addClass('hidden'); -
cookiebot/trunk/assets/js/backend/settings-page.js
r3399794 r3459839 65 65 } 66 66 67 // Validate that the field has exactly 14 or 36 characters67 // Validate that the field has exactly 9, 14 or 36 characters 68 68 const fieldLength = cbidField.val().length; 69 if(fieldLength !== 14 && fieldLength !== 36){69 if(fieldLength !== 9 && fieldLength !== 14 && fieldLength !== 36){ 70 70 cbidCheck.removeClass('check-pass'); 71 71 cbidRulesetSelector.addClass('hidden'); … … 177 177 178 178 function submitEnable() { 179 const initialValues = jQuery(' input[name!=_wp_http_referer]','form').serialize();179 const initialValues = jQuery(':input[name!=_wp_http_referer]','form').serialize(); 180 180 const events = { 181 181 change: 'input:not([type=text]), select', … … 193 193 function checkValues(initialValues){ 194 194 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(); 196 196 if(newValues !== initialValues) { 197 197 submitBtn.addClass('enabled'); … … 350 350 351 351 function removeRestriction(){ 352 const initialValues = jQuery(' input[name!=_wp_http_referer]','form').serialize();352 const initialValues = jQuery(':input[name!=_wp_http_referer]','form').serialize(); 353 353 let submitBtn = jQuery('.cb-settings__header p.submit #submit'); 354 354 jQuery(document).on('click','.cb-settings__vendor__restrictions .remove__restriction', function(){ … … 369 369 restriction.remove(); 370 370 } 371 let newValues = jQuery(' input[name!=_wp_http_referer]','form').serialize();371 let newValues = jQuery(':input[name!=_wp_http_referer]','form').serialize(); 372 372 if(newValues !== initialValues) { 373 373 submitBtn.addClass('enabled'); -
cookiebot/trunk/readme.txt
r3447832 r3459839 163 163 ## Changelog ## 164 164 **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 ### 167 Release date: February 12th 2026 168 169 Cookiebot 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 165 178 166 179 ### 4.6.3 ### -
cookiebot/trunk/src/lib/Cookiebot_Activated.php
r3447830 r3459839 88 88 $enabled = get_option( 'cookiebot-banner-enabled', 'default' ); 89 89 $cbid = Cookiebot_WP::get_cbid(); 90 90 91 91 // Set to enabled if it's a fresh install (default) 92 92 if ( $enabled === 'default' ) { … … 94 94 update_option( 'cookiebot-banner-enabled', $enabled ); 95 95 } 96 96 97 97 // If banner is disabled but CBID is configured, it was disabled by hosting or plugin update. Re-enable it. 98 98 if ( $enabled === '0' && ! empty( $cbid ) ) { -
cookiebot/trunk/src/lib/script_loader_tag/Script_Loader_Tag.php
r3447830 r3459839 112 112 // First, check if this script requires consent (registered via add_tag) 113 113 $handle = $this->extract_handle_from_attributes( $attributes ); 114 114 115 115 if ( $handle && array_key_exists( $handle, $this->tags ) && ! empty( $this->tags[ $handle ] ) ) { 116 116 $attributes['type'] = 'text/plain'; … … 142 142 // Check if inline script belongs to a consent-required parent script 143 143 $base_handle = $this->extract_base_id_from_inline_id( $attributes['id'] ); 144 144 145 145 if ( $base_handle && array_key_exists( $base_handle, $this->tags ) && ! empty( $this->tags[ $base_handle ] ) ) { 146 146 $attributes['type'] = 'text/plain'; -
cookiebot/trunk/src/view/admin/cb_frame/settings/general-page.php
r3399794 r3459839 82 82 <div class="cookiebot-cbid-error-container"> 83 83 <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' ); ?> 85 85 </div> 86 86 </div> -
cookiebot/trunk/src/view/admin/common/network-settings-page.php
r3399794 r3459839 62 62 <div class="cookiebot-cbid-container"> 63 63 <div class="cookiebot-cbid-input"> 64 <input placeholder=" <14 chars> or <36 chars>"64 <input placeholder="9, 14 or 36 characters" 65 65 type="text" id="cookiebot-cbid" class="initial-cbid-setup" 66 66 name="cookiebot-cbid" … … 70 70 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?> 71 71 <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' ); ?> 73 73 </div> 74 74 </div> -
cookiebot/trunk/src/view/admin/common/settings-page.php
r3399794 r3459839 66 66 <div class="cookiebot-cbid-container"> 67 67 <div class="cookiebot-cbid-input"> 68 <input placeholder=" <14 chars> or <36 chars>"68 <input placeholder="9, 14 or 36 characters" 69 69 type="text" id="cookiebot-cbid" class="initial-cbid-setup" 70 70 name="cookiebot-cbid" … … 74 74 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?> 75 75 <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' ); ?> 77 77 </div> 78 78 </div> -
cookiebot/trunk/src/view/admin/uc_frame/settings/general-page.php
r3399794 r3459839 101 101 <div class="cookiebot-cbid-error-container"> 102 102 <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' ); ?> 104 104 </div> 105 105 </div>
Note: See TracChangeset
for help on using the changeset viewer.