From 2397525dfbe29814ace66dd1dbca152208aad9a8 Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Sun, 12 Jan 2025 12:11:36 +0530 Subject: [PATCH] Added Global Documentation in inline documentation (#68613) * Added Global Documentation * fixed lint issue * Added Global Documentation in demo.php Co-authored-by: shail-mehta Co-authored-by: Mamaduka --- bin/generate-gutenberg-php.php | 2 ++ lib/demo.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/generate-gutenberg-php.php b/bin/generate-gutenberg-php.php index 4ed6b661a21c2..1dc2cf6db4ef5 100755 --- a/bin/generate-gutenberg-php.php +++ b/bin/generate-gutenberg-php.php @@ -15,6 +15,8 @@ /** * Prints `define` statements for the production version of `gutenberg.php` * (the plugin entry point). + * + * @global string $plugin_version The version number of the plugin. */ function print_production_defines() { global $plugin_version; diff --git a/lib/demo.php b/lib/demo.php index 11272050bf4c2..0e7ad5c2c8cc7 100644 --- a/lib/demo.php +++ b/lib/demo.php @@ -11,6 +11,8 @@ /** * Redirects the demo page to edit a new post. + * + * @global string $pagenow The name of the current admin page being viewed. */ function gutenberg_redirect_demo() { global $pagenow;