Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @global to PHP doc comments #59522

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/compat/wordpress-6.5/fonts/fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ function gutenberg_create_initial_post_types() {

/**
* Initializes REST routes.
*
* @global string $wp_version The WordPress version string.
*/
function gutenberg_create_initial_rest_routes() {
global $wp_version;
Expand All @@ -101,6 +103,8 @@ function gutenberg_create_initial_rest_routes() {

/**
* Initializes REST routes and post types.
*
* @global string $wp_version The WordPress version string.
*/
function gutenberg_init_font_library() {
global $wp_version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,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
2 changes: 2 additions & 0 deletions packages/block-library/src/post-template/index.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.
*
* @param array $attributes Block attributes.
* @param string $content Block default content.
* @param WP_Block $block Block instance.
Expand Down