Skip to content

Commit

Permalink
Merge pull request #97 from Automattic/planned-release/1.0.11
Browse files Browse the repository at this point in the history
Planned release 1.0.11
  • Loading branch information
alecgeatches authored Nov 7, 2024
2 parents 0dc1a8f + a916733 commit 9202d9d
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 120 deletions.
8 changes: 7 additions & 1 deletion governance/init-governance.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ private static function load_governance_configuration() {
$block_settings_for_user = $governance_rules_for_user['blockSettings'];
$nested_settings_and_css = NestedGovernanceProcessing::get_nested_settings_and_css( $block_settings_for_user );
BlockLocking::init( $governance_rules_for_user['allowedFeatures'] );
Analytics::record_usage();

$epoch_time = floor( microtime( true ) );

if ( ( $epoch_time % 10 ) === 0 ) {
// Sample results. Only send analytics on 10% of configuration loads.
Analytics::record_usage();
}
}
} catch ( Exception | Error $e ) {
// This is an unexpected exception. Record error for follow-up with WPVIP customers.
Expand Down
Loading

0 comments on commit 9202d9d

Please sign in to comment.