From d1dbc3c69dd2adc46960a762d2a4d391775fd98f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Sep 2020 13:37:06 +0000 Subject: [PATCH] Docs: Document the usage of `$wpdb` global in `wp_get_post_autosave()`. Follow-up to [48422]. Props ravivaddweb. Fixes #51308. See #34560. Built from https://develop.svn.wordpress.org/trunk@48975 git-svn-id: http://core.svn.wordpress.org/trunk@48737 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/revision.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/revision.php b/wp-includes/revision.php index 7bb7be1cb2..e99139df60 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -227,6 +227,8 @@ function wp_save_post_revision( $post_id ) { * * @since 2.6.0 * + * @global wpdb $wpdb WordPress database abstraction object. + * * @param int $post_id The post ID. * @param int $user_id Optional The post author ID. * @return WP_Post|false The autosaved data or false on failure or when no autosave exists. diff --git a/wp-includes/version.php b/wp-includes/version.php index c683368f1d..972ad03996 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48974'; +$wp_version = '5.6-alpha-48975'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.