Skip to content

Commit 951879a

Browse files
snehapatil2001snehapatil2001yogeshbhutkart-hamano
authored
Latest Posts block: Add missing @global PHP documentation (#69763)
* feat: add the @global documentation. * fix: phpcs error. * chore: update doc comment. * fix: alignment. Co-authored-by: snehapatil2001 <snehapatil02@git.wordpress.org> Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
1 parent d8545b2 commit 951879a

File tree

1 file changed

+3
-0
lines changed
  • packages/block-library/src/latest-posts

1 file changed

+3
-0
lines changed

packages/block-library/src/latest-posts/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ function block_core_latest_posts_get_excerpt_length() {
3333
*
3434
* @since 5.0.0
3535
*
36+
* @global WP_Post $post Global post object.
37+
* @global int $block_core_latest_posts_excerpt_length Excerpt length set by the Latest Posts core block.
38+
*
3639
* @param array $attributes The block attributes.
3740
*
3841
* @return string Returns the post content with latest posts added.

0 commit comments

Comments
 (0)