From 44d162d0b26da2fe12d8b678f5fd53b812d3e39c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Jun 2017 12:54:31 +0000 Subject: [PATCH] Docs: Add a `@global` entry for `$post` variable in `wp_post_preview_js()`. Props avinapatel. Fixes #41194. git-svn-id: https://develop.svn.wordpress.org/trunk@40959 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 828f123491..26f9eb3a2c 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -5455,6 +5455,8 @@ function wp_delete_file( $file ) { * This prevents reusing the same tab for a preview when the user has navigated away. * * @since 4.3.0 + * + * @global WP_Post $post */ function wp_post_preview_js() { global $post;