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

Props kebbet.
See #54729.

Built from https://develop.svn.wordpress.org/trunk@52582


git-svn-id: http://core.svn.wordpress.org/trunk@52172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-01-15 21:22:02 +00:00
parent 0bc24dd81f
commit 8669c16e04
5 changed files with 6 additions and 6 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.5.0
* @since 5.9.0 Renamed `$plugin` to `$item` to match parent class for PHP 8 named parameter support. * @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 * @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. * @param string $context Context defined in the schema.
* @return array Filtered response. * @return array Filtered response.
*/ */

View File

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

View File

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

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-alpha-52581'; $wp_version = '6.0-alpha-52582';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.