mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 14:44:37 +00:00
Docs: Various docblock corrections and improvements for changes introduced in 6.0.
See #54729 git-svn-id: https://develop.svn.wordpress.org/trunk@53302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1193,7 +1193,7 @@ function build_query_vars_from_query_block( $block, $page ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function that returns the proper pagination arrow html for
|
||||
* Helper function that returns the proper pagination arrow HTML for
|
||||
* `QueryPaginationNext` and `QueryPaginationPrevious` blocks based
|
||||
* on the provided `paginationArrow` from `QueryPagination` context.
|
||||
*
|
||||
@@ -1204,7 +1204,7 @@ function build_query_vars_from_query_block( $block, $page ) {
|
||||
* @param WP_Block $block Block instance.
|
||||
* @param boolean $is_next Flag for handling `next/previous` blocks.
|
||||
*
|
||||
* @return string|null Returns the constructed WP_Query arguments.
|
||||
* @return string|null The pagination arrow HTML or null if there is none.
|
||||
*/
|
||||
function get_query_pagination_arrow( $block, $is_next ) {
|
||||
$arrow_map = array(
|
||||
@@ -1282,7 +1282,7 @@ add_filter( 'block_type_metadata', '_wp_multiple_block_styles' );
|
||||
* @param WP_Block $block Block instance.
|
||||
*
|
||||
* @return array Returns the comment query parameters to use with the
|
||||
* WP_Comment_Query constructor.
|
||||
* WP_Comment_Query constructor.
|
||||
*/
|
||||
function build_comment_query_vars_from_block( $block ) {
|
||||
|
||||
@@ -1339,7 +1339,7 @@ function build_comment_query_vars_from_block( $block ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function that returns the proper pagination arrow html for
|
||||
* Helper function that returns the proper pagination arrow HTML for
|
||||
* `CommentsPaginationNext` and `CommentsPaginationPrevious` blocks based on the
|
||||
* provided `paginationArrow` from `CommentsPagination` context.
|
||||
*
|
||||
@@ -1351,7 +1351,7 @@ function build_comment_query_vars_from_block( $block ) {
|
||||
* @param string $pagination_type Type of the arrow we will be rendering.
|
||||
* Default 'next'. Accepts 'next' or 'previous'.
|
||||
*
|
||||
* @return string|null Returns the constructed WP_Query arguments.
|
||||
* @return string|null The pagination arrow HTML or null if there is none.
|
||||
*/
|
||||
function get_comments_pagination_arrow( $block, $pagination_type = 'next' ) {
|
||||
$arrow_map = array(
|
||||
|
||||
Reference in New Issue
Block a user