Changeset 3771694
- Timestamp:
- 10/28/2026 09:22:38 PM (7 days ago)
- Location:
- puregrace-consent-connector
- Files:
-
- 3 edited
- 6 copied
-
tags/1.12.1 (copied) (copied from puregrace-consent-connector/trunk )
-
tags/1.12.1/includes/class-pgcc-antispam-adapters.php (copied) (copied from puregrace-consent-connector/trunk/includes/class-pgcc-antispam-adapters.php )
-
tags/1.12.1/includes/class-pgcc-antispam.php (copied) (copied from puregrace-consent-connector/trunk/includes/class-pgcc-antispam.php )
-
tags/1.12.1/includes/class-pgcc-graceguard.php (copied) (copied from puregrace-consent-connector/trunk/includes/class-pgcc-graceguard.php ) (1 diff)
-
tags/1.12.1/puregrace-consent-connector.php (copied) (copied from puregrace-consent-connector/trunk/puregrace-consent-connector.php ) (2 diffs)
-
tags/1.12.1/readme.txt (copied) (copied from puregrace-consent-connector/trunk/readme.txt ) (3 diffs)
-
trunk/includes/class-pgcc-graceguard.php (modified) (1 diff)
-
trunk/puregrace-consent-connector.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
puregrace-consent-connector/tags/1.12.1/includes/class-pgcc-graceguard.php
r3771604 r3771694 325 325 return 'ALLOW'; // Site staff testing their own forms, same as the basics. 326 326 } 327 $flat = pgcc_gg_flatten( $raw ); 328 $result = pgcc_gg_call( $slug, $form_id, pgcc_gg_payload( $flat ) ); 327 $flat = pgcc_gg_flatten( $raw ); 328 $payload = pgcc_gg_payload( $flat ); 329 // Some hooks run twice for one submission (WordPress applies 330 // pre_comment_approved twice per comment). Screen each submission once 331 // per request so it is counted, stored and billed once. 332 $key = $slug . '|' . $form_id . '|' . md5( (string) wp_json_encode( $payload ) ); 333 $memo = pgcc_gg_screen_memo(); 334 if ( isset( $memo[ $key ] ) ) { 335 return $memo[ $key ]; 336 } 337 $verdict = pgcc_gg_screen_once( $slug, $form_id, $flat, $payload, $notify_to ); 338 pgcc_gg_screen_memo( $key, $verdict ); 339 return $verdict; 340 } 341 342 /** 343 * This request's screening results. ( $key, $verdict ) stores one; 344 * ( null, null, true ) clears them (tests only). 345 */ 346 function pgcc_gg_screen_memo( $key = null, $verdict = null, $reset = false ) { 347 static $memo = array(); 348 if ( $reset ) { 349 $memo = array(); 350 } elseif ( null !== $key ) { 351 $memo[ $key ] = $verdict; 352 } 353 return $memo; 354 } 355 356 /** One real screening call; see pgcc_gg_screen() for the per-request memo. */ 357 function pgcc_gg_screen_once( $slug, $form_id, $flat, $payload, $notify_to ) { 358 $result = pgcc_gg_call( $slug, $form_id, $payload ); 329 359 if ( null === $result || 'ALLOW' === $result['verdict'] ) { 330 360 return 'ALLOW'; -
puregrace-consent-connector/tags/1.12.1/puregrace-consent-connector.php
r3771604 r3771694 4 4 * Plugin URI: https://aiprivacycenter.com/wordpress-cookie-consent/ 5 5 * 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.12. 06 * Version: 1.12.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 42 42 } 43 43 44 define( 'PGCC_VERSION', '1.12. 0' );44 define( 'PGCC_VERSION', '1.12.1' ); 45 45 define( 'PGCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 46 46 -
puregrace-consent-connector/tags/1.12.1/readme.txt
r3771604 r3771694 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.12. 07 Stable tag: 1.12.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 == Changelog == 118 118 119 = 1.12.1 = 120 * GraceGuard: each comment is now screened once. WordPress runs its comment-approval check twice per comment, which made every comment count twice in your GraceGuard results. 121 119 122 = 1.12.0 = 120 123 * GraceGuard by AI Privacy Center (paid add-on, off unless you turn it on in your dashboard): submissions that pass the free spam checks are also screened by AI Privacy Center. Clear spam goes to each form plugin's spam handling as before. Borderline messages are held for review: the visitor sees the form's normal success message, the notification email is held back, and you release it with **Not spam** under the new **Settings → Held messages** screen (comments go to Comments → Pending, Gravity Forms entries to its Spam folder). Released senders are trusted from then on. Held copies stay in your own database and are deleted after 30 days. … … 209 212 == Upgrade Notice == 210 213 214 = 1.12.1 = 215 GraceGuard counts each comment once instead of twice. 216 211 217 = 1.12.0 = 212 218 Adds support for GraceGuard, AI Privacy Center's optional spam-screening add-on, with a review queue under Settings → Held messages. Nothing changes unless GraceGuard is turned on for this site in your dashboard. -
puregrace-consent-connector/trunk/includes/class-pgcc-graceguard.php
r3771604 r3771694 325 325 return 'ALLOW'; // Site staff testing their own forms, same as the basics. 326 326 } 327 $flat = pgcc_gg_flatten( $raw ); 328 $result = pgcc_gg_call( $slug, $form_id, pgcc_gg_payload( $flat ) ); 327 $flat = pgcc_gg_flatten( $raw ); 328 $payload = pgcc_gg_payload( $flat ); 329 // Some hooks run twice for one submission (WordPress applies 330 // pre_comment_approved twice per comment). Screen each submission once 331 // per request so it is counted, stored and billed once. 332 $key = $slug . '|' . $form_id . '|' . md5( (string) wp_json_encode( $payload ) ); 333 $memo = pgcc_gg_screen_memo(); 334 if ( isset( $memo[ $key ] ) ) { 335 return $memo[ $key ]; 336 } 337 $verdict = pgcc_gg_screen_once( $slug, $form_id, $flat, $payload, $notify_to ); 338 pgcc_gg_screen_memo( $key, $verdict ); 339 return $verdict; 340 } 341 342 /** 343 * This request's screening results. ( $key, $verdict ) stores one; 344 * ( null, null, true ) clears them (tests only). 345 */ 346 function pgcc_gg_screen_memo( $key = null, $verdict = null, $reset = false ) { 347 static $memo = array(); 348 if ( $reset ) { 349 $memo = array(); 350 } elseif ( null !== $key ) { 351 $memo[ $key ] = $verdict; 352 } 353 return $memo; 354 } 355 356 /** One real screening call; see pgcc_gg_screen() for the per-request memo. */ 357 function pgcc_gg_screen_once( $slug, $form_id, $flat, $payload, $notify_to ) { 358 $result = pgcc_gg_call( $slug, $form_id, $payload ); 329 359 if ( null === $result || 'ALLOW' === $result['verdict'] ) { 330 360 return 'ALLOW'; -
puregrace-consent-connector/trunk/puregrace-consent-connector.php
r3771604 r3771694 4 4 * Plugin URI: https://aiprivacycenter.com/wordpress-cookie-consent/ 5 5 * 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.12. 06 * Version: 1.12.1 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 … … 42 42 } 43 43 44 define( 'PGCC_VERSION', '1.12. 0' );44 define( 'PGCC_VERSION', '1.12.1' ); 45 45 define( 'PGCC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 46 46 -
puregrace-consent-connector/trunk/readme.txt
r3771604 r3771694 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.12. 07 Stable tag: 1.12.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 == Changelog == 118 118 119 = 1.12.1 = 120 * GraceGuard: each comment is now screened once. WordPress runs its comment-approval check twice per comment, which made every comment count twice in your GraceGuard results. 121 119 122 = 1.12.0 = 120 123 * GraceGuard by AI Privacy Center (paid add-on, off unless you turn it on in your dashboard): submissions that pass the free spam checks are also screened by AI Privacy Center. Clear spam goes to each form plugin's spam handling as before. Borderline messages are held for review: the visitor sees the form's normal success message, the notification email is held back, and you release it with **Not spam** under the new **Settings → Held messages** screen (comments go to Comments → Pending, Gravity Forms entries to its Spam folder). Released senders are trusted from then on. Held copies stay in your own database and are deleted after 30 days. … … 209 212 == Upgrade Notice == 210 213 214 = 1.12.1 = 215 GraceGuard counts each comment once instead of twice. 216 211 217 = 1.12.0 = 212 218 Adds support for GraceGuard, AI Privacy Center's optional spam-screening add-on, with a review queue under Settings → Held messages. Nothing changes unless GraceGuard is turned on for this site in your dashboard.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)