Skip to content

Commit a5cef8e

Browse files
Apply suggestions from code review
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent 78b010b commit a5cef8e

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/wp-includes/ai-client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Returns whether AI features are supported in the current environment.
1414
*
1515
* @since 7.0.0
16+
*
17+
* @return bool Whether AI features are supported.
1618
*/
1719
function wp_supports_ai(): bool {
1820
// Constant check gives a hard short-circuit for environments that cannot be overridden with a filter, such as wp-config.php settings or hosting provider configurations.

tests/phpunit/tests/ai-client/wpSupportsAI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
class Tests_WP_Supports_AI extends WP_UnitTestCase {
1010
/**
11-
* {@inheritDoc}
12-
*/
11+
* {@inheritDoc}
12+
*/
1313
public function tear_down() {
1414
// Remove the WP_DISABLE_AI constant if it was defined during tests.
1515
remove_all_filters( 'wp_supports_ai' );

tests/phpunit/tests/connectors/wpConnectorsGetConnectorSettings.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ public function test_includes_registered_provider_from_registry() {
115115
$this->assertNull( $mock['authentication']['credentials_url'] );
116116
$this->assertSame( 'connectors_ai_mock_connectors_test_api_key', $mock['authentication']['setting_name'] );
117117
}
118-
119-
120-
121118
/**
122119
* Tests connectors return an empty array when AI is not supported
123120
*/

0 commit comments

Comments
 (0)