Skip to content

Commit c705e48

Browse files
committed
fix: typo in Extensions\Registry\get_extensions() method name
1 parent eb824fd commit c705e48

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/submit-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ We are exploring additional submission methods:
4646

4747
```php
4848
// ./src/Admin/Extensions/Registry.php
49-
public static function get_extenions(): array {
49+
public static function get_extensions(): array {
5050
return [
5151
// ... other extensions
5252
'my-unique-prefix/my-new-extension' => [ // Unique identifier for the extension, this should be placed alphabetically in the list.

src/Admin/Extensions/Extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ static function ( $a, $b ) {
341341
public function get_extensions(): array {
342342
if ( ! isset( $this->extensions ) ) {
343343
// @todo Replace with a call to the WPGraphQL server.
344-
$extensions = Registry::get_extenions();
344+
$extensions = Registry::get_extensions();
345345

346346
/**
347347
* Filter the list of extensions, allowing other plugins to add or remove extensions.

src/Admin/Extensions/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class Registry {
4747
*
4848
* @return array<string,Extension>
4949
*/
50-
public static function get_extenions(): array {
50+
public static function get_extensions(): array {
5151
return [
5252
'wp-graphql/wp-graphql-smart-cache' => [
5353
'name' => 'WPGraphQL Smart Cache',

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ private function do_action( OperationParams $params ) {
587587
* @param ?string $operation The name of the operation
588588
* @param ?array $variables Variables to be passed to your GraphQL request
589589
* @param \GraphQL\Server\OperationParams $params The Operation Params. This includes any extra params,
590-
* such as extenions or any other modifications to the request body
590+
* such as extensions or any other modifications to the request body
591591
*/
592592
do_action( 'do_graphql_request', $params->query, $params->operation, $params->variables, $params );
593593
}

0 commit comments

Comments
 (0)