diff --git a/docs/hooks.txt b/docs/hooks.txt index 28350660624..32d06dfdd21 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -4074,7 +4074,7 @@ extensions to fill the 'description' field in search results. Warning: this hook as well as SearchResultPageIdentity interface is being under development and still unstable. $pageIdentities: an array (string=>SearchResultPageIdentity) where key is pageId. &$descriptions: an output array (string=>string|null) where key is pageId and value is either -a desciption for given page or null +a description for given page or null 'SearchResultProvideThumbnail': Called by REST SearchHandler in order to allow extensions to fill the 'thumbnail' field in rest search results. Warning: this diff --git a/includes/Rest/Handler/SearchHandler.php b/includes/Rest/Handler/SearchHandler.php index 2d20db652d5..9df6ab95be4 100644 --- a/includes/Rest/Handler/SearchHandler.php +++ b/includes/Rest/Handler/SearchHandler.php @@ -278,11 +278,11 @@ class SearchHandler extends Handler { } /** - * Turn page info into serializable array with desciption field for the page. + * Turn page info into serializable array with description field for the page. * - * The information about desciption should be provided by extension by implementing - * 'SearchResultProvideDescription' hook. Desciption is set to null if no extensions implement - * the hook. + * The information about description should be provided by extension by implementing + * 'SearchResultProvideDescription' hook. Description is set to null if no extensions + * implement the hook. * @param array $pageIdentities * * @return array diff --git a/includes/Rest/Hook/SearchResultProvideDescriptionHook.php b/includes/Rest/Hook/SearchResultProvideDescriptionHook.php index 82832e54077..fe32c939081 100644 --- a/includes/Rest/Hook/SearchResultProvideDescriptionHook.php +++ b/includes/Rest/Hook/SearchResultProvideDescriptionHook.php @@ -19,7 +19,7 @@ interface SearchResultProvideDescriptionHook { * * @param array $pageIdentities an array (string=>SearchResultPageIdentity) where key is pageId. * @param array &$descriptions an output array (string=>string|null) where key - * is pageId and value is either a desciption for given page or null + * is pageId and value is either a description for given page or null */ public function onSearchResultProvideDescription( array $pageIdentities, &$descriptions ); }