Plugin Directory

Changeset 3799475


Ignore:
Timestamp:
11/13/2026 12:32:12 AM (less than one hour ago)
Author:
puregraceai
Message:

PureGrace Consent Connector 1.14.5 - correct a site-wide colour setting once instead of a rule per element

Location:
puregrace-consent-connector
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • puregrace-consent-connector/tags/1.14.5/includes/class-pgcc-a11y-rules.php

    r3793196 r3799475  
    127127                    continue;
    128128                }
     129                // A site colour setting (CSS custom property), e.g. Elementor's
     130                // --e-global-color-text. One value corrects every element that
     131                // uses it without overriding elements that set their own colour.
     132                // The name is kept exactly as given (custom property names are
     133                // case-sensitive); the value must be a plain hex colour.
     134                if ( preg_match( '/^(--[A-Za-z0-9][A-Za-z0-9_-]{0,80})\s*:\s*(#[0-9a-fA-F]{3,8})\s*(!important)?$/', $d, $cm ) ) {
     135                    $decls[] = $cm[1] . ': ' . strtolower( $cm[2] ) . ' !important';
     136                    continue;
     137                }
    129138                if ( ! preg_match( '/^([a-z-]+)\s*:\s*([#\w\s().,%\/-]+?)\s*(!important)?$/i', $d, $m ) ) {
    130139                    return new WP_Error( 'bad_css', 'Declaration not allowed: ' . substr( $d, 0, 60 ), array( 'status' => 400 ) );
  • puregrace-consent-connector/tags/1.14.5/puregrace-consent-connector.php

    r3795024 r3799475  
    44 * Plugin URI: https://aiprivacycenter.com/wordpress-cookie-consent/
    55 * Description: Blocks hardcoded trackers server-side before the browser parses them, and connects your site to the AI Privacy Center consent platform (a service by Pure Grace AI, LLC).
    6  * Version: 1.14.4
     6 * Version: 1.14.5
    77 * Requires at least: 5.8
    88 * Requires PHP: 7.4
    … …  
    4242}
    4343
    44 define( 'PGCC_VERSION', '1.14.4' );
     44define( 'PGCC_VERSION', '1.14.5' );
    4545define( 'PGCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    4646
  • puregrace-consent-connector/tags/1.14.5/readme.txt

    r3795024 r3799475  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.14.4
     7Stable tag: 1.14.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    118118== Changelog ==
    119119
     120= 1.14.5 =
     121* Accessibility fixes: when one of your theme's colour settings (for example the global text colour in Elementor or Astra) is the reason text fails contrast across the site, AI Privacy Center can now correct that one setting instead of adding a separate rule for every paragraph. Elements that set their own colour are left alone. As with every fix, it is re-scanned and rolled back automatically if it does not clear the issue.
     122
    120123= 1.14.4 =
    121124* Accessibility fixes: AI Privacy Center can now fix low-contrast text colours that are set in your page content (block colour settings or inline styles). The page is saved as a revision first, the block editor keeps showing the block as valid, and a fix that does not clear the issue is rolled back automatically.
    … …  
    245248== Upgrade Notice ==
    246249
     250= 1.14.5 =
     251Lets AI Privacy Center correct a site-wide colour setting once instead of adding a rule for every element.
     252
    247253= 1.14.4 =
    248254Lets AI Privacy Center fix low-contrast text colours set in your page content.
  • puregrace-consent-connector/trunk/includes/class-pgcc-a11y-rules.php

    r3793196 r3799475  
    127127                    continue;
    128128                }
     129                // A site colour setting (CSS custom property), e.g. Elementor's
     130                // --e-global-color-text. One value corrects every element that
     131                // uses it without overriding elements that set their own colour.
     132                // The name is kept exactly as given (custom property names are
     133                // case-sensitive); the value must be a plain hex colour.
     134                if ( preg_match( '/^(--[A-Za-z0-9][A-Za-z0-9_-]{0,80})\s*:\s*(#[0-9a-fA-F]{3,8})\s*(!important)?$/', $d, $cm ) ) {
     135                    $decls[] = $cm[1] . ': ' . strtolower( $cm[2] ) . ' !important';
     136                    continue;
     137                }
    129138                if ( ! preg_match( '/^([a-z-]+)\s*:\s*([#\w\s().,%\/-]+?)\s*(!important)?$/i', $d, $m ) ) {
    130139                    return new WP_Error( 'bad_css', 'Declaration not allowed: ' . substr( $d, 0, 60 ), array( 'status' => 400 ) );
  • puregrace-consent-connector/trunk/puregrace-consent-connector.php

    r3795024 r3799475  
    44 * Plugin URI: https://aiprivacycenter.com/wordpress-cookie-consent/
    55 * Description: Blocks hardcoded trackers server-side before the browser parses them, and connects your site to the AI Privacy Center consent platform (a service by Pure Grace AI, LLC).
    6  * Version: 1.14.4
     6 * Version: 1.14.5
    77 * Requires at least: 5.8
    88 * Requires PHP: 7.4
    … …  
    4242}
    4343
    44 define( 'PGCC_VERSION', '1.14.4' );
     44define( 'PGCC_VERSION', '1.14.5' );
    4545define( 'PGCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    4646
  • puregrace-consent-connector/trunk/readme.txt

    r3795024 r3799475  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.14.4
     7Stable tag: 1.14.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    118118== Changelog ==
    119119
     120= 1.14.5 =
     121* Accessibility fixes: when one of your theme's colour settings (for example the global text colour in Elementor or Astra) is the reason text fails contrast across the site, AI Privacy Center can now correct that one setting instead of adding a separate rule for every paragraph. Elements that set their own colour are left alone. As with every fix, it is re-scanned and rolled back automatically if it does not clear the issue.
     122
    120123= 1.14.4 =
    121124* Accessibility fixes: AI Privacy Center can now fix low-contrast text colours that are set in your page content (block colour settings or inline styles). The page is saved as a revision first, the block editor keeps showing the block as valid, and a fix that does not clear the issue is rolled back automatically.
    … …  
    245248== Upgrade Notice ==
    246249
     250= 1.14.5 =
     251Lets AI Privacy Center correct a site-wide colour setting once instead of adding a rule for every element.
     252
    247253= 1.14.4 =
    248254Lets AI Privacy Center fix low-contrast text colours set in your page content.
Note: See TracChangeset for help on using the changeset viewer.