Docs: Miscellaneous docblock corrections in REST API and Sitemaps API.

Props kebbet.
See #54729.


git-svn-id: https://develop.svn.wordpress.org/trunk@52582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-01-15 21:20:57 +00:00
parent 6c22dffb87
commit 9603988369
4 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ class WP_REST_Block_Directory_Controller extends WP_REST_Controller {
}
/**
* Parse block metadata for a block, and prepare it for an API repsonse.
* Parse block metadata for a block, and prepare it for an API response.
*
* @since 5.5.0
* @since 5.9.0 Renamed `$plugin` to `$item` to match parent class for PHP 8 named parameter support.

View File

@ -41,7 +41,7 @@ class WP_REST_Blocks_Controller extends WP_REST_Posts_Controller {
*
* @since 5.0.0
*
* @param array $data Response data to fiter.
* @param array $data Response data to filter.
* @param string $context Context defined in the schema.
* @return array Filtered response.
*/

View File

@ -557,7 +557,7 @@ class WP_REST_URL_Details_Controller extends WP_REST_Controller {
$pattern = '#<meta\s' .
/*
* Alows for additional attributes before the content attribute.
* Allows for additional attributes before the content attribute.
* Searches for anything other than > symbol.
*/
'[^>]*' .
@ -643,7 +643,7 @@ class WP_REST_URL_Details_Controller extends WP_REST_Controller {
*/
'#isU';
// Find the metdata element.
// Find the metadata element.
foreach ( $meta_elements[0] as $index => $element ) {
preg_match( $pattern, $element, $match );

View File

@ -27,7 +27,7 @@ class WP_Sitemaps_Index {
/**
* Maximum number of sitemaps to include in an index.
*
* @sincee 5.5.0
* @since 5.5.0
*
* @var int Maximum number of sitemaps.
*/