Skip to content

Commit

Permalink
Docs: Add missing @global mention in wp_interactivity().
Browse files Browse the repository at this point in the history
This merges a changeset updated upstream in the Gutenberg repository.
See WordPress/gutenberg#59522.

Props wildworks.
Fixes #60677.
See #59651.





git-svn-id: https://develop.svn.wordpress.org/trunk@57774 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Mar 5, 2024
1 parent 56297f5 commit 8dbf39e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/wp-includes/blocks/post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function block_core_post_template_uses_featured_image( $inner_blocks ) {
*
* @since 6.3.0 Changed render_block_context priority to `1`.
*
* @global WP_Query $wp_query WordPress Query object.
*

Check failure on line 40 in src/wp-includes/blocks/post-template.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Whitespace found at end of line
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/interactivity-api/interactivity-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ function wp_interactivity_process_directives_of_interactive_blocks( array $parse
* It provides access to the WP_Interactivity_API instance, creating one if it
* doesn't exist yet.
*
* @global WP_Interactivity_API $wp_interactivity
*
* @since 6.5.0
*
* @global WP_Interactivity_API $wp_interactivity
*
* @return WP_Interactivity_API The main WP_Interactivity_API instance.
*/
function wp_interactivity(): WP_Interactivity_API {
Expand Down

0 comments on commit 8dbf39e

Please sign in to comment.