Skip to content

Commit

Permalink
Merge pull request #8991 from google/infrastructure/8724-fix-connecti…
Browse files Browse the repository at this point in the history
…on-flow

Fix platform name for proxy.
  • Loading branch information
tofumatt committed Jul 9, 2024
2 parents 89aea1d + 0372815 commit 6ef248a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/Core/Authentication/Google_Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public static function get_platform() {
if ( is_multisite() ) {
return 'wordpress-multisite';
}
return 'WordPress'; // phpcs:ignore WordPress.WP.CapitalPDangit.Misspelled
return 'wordpress'; // phpcs:ignore WordPress.WP.CapitalPDangit.MisspelledInText
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function test_get_features() {
array(
'site_id' => $site_id,
'site_secret' => $site_secret,
'platform' => is_multisite() ? 'wordpress-multisite/google-site-kit' : 'WordPress/google-site-kit',
'platform' => is_multisite() ? 'wordpress-multisite/google-site-kit' : 'wordpress/google-site-kit',
'version' => GOOGLESITEKIT_VERSION,
'platform_version' => $wp_version,
'user_count' => 5, // 1 default admin + 1 admin + 2 editors + 1 subscriber.
Expand Down Expand Up @@ -492,7 +492,7 @@ public function test_count_connected_users() {
* @group ms-excluded
*/
public function test_get_platform() {
$this->assertEquals( 'WordPress', Google_Proxy::get_platform() ); // phpcs:ignore WordPress.WP.CapitalPDangit.Misspelled
$this->assertEquals( 'wordpress', Google_Proxy::get_platform() ); // phpcs:ignore WordPress.WP.CapitalPDangit.MisspelledInText
}

/**
Expand Down

0 comments on commit 6ef248a

Please sign in to comment.