From c66d278da5a5995c0ccd08eae61c467e9b3edd14 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 24 Nov 2021 11:41:03 +0000 Subject: [PATCH] Docs: Document the globals used in some Privacy API methods. See #53399. Built from https://develop.svn.wordpress.org/trunk@52239 git-svn-id: http://core.svn.wordpress.org/trunk@51831 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-privacy-policy-content.php | 4 ++++ wp-admin/includes/class-wp-privacy-requests-table.php | 2 ++ wp-includes/version.php | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-privacy-policy-content.php b/wp-admin/includes/class-wp-privacy-policy-content.php index bbe479172e..54e5326ccb 100644 --- a/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/wp-admin/includes/class-wp-privacy-policy-content.php @@ -125,6 +125,8 @@ final class WP_Privacy_Policy_Content { * Output a warning when some privacy info has changed. * * @since 4.9.6 + * + * @global WP_Post $post Global post object. */ public static function policy_text_changed_notice() { global $post; @@ -303,6 +305,8 @@ final class WP_Privacy_Policy_Content { * @since 4.9.6 * @since 5.0.0 The `$post` parameter was made optional. * + * @global WP_Post $post Global post object. + * * @param WP_Post|null $post The currently edited post. Default null. */ public static function notice( $post = null ) { diff --git a/wp-admin/includes/class-wp-privacy-requests-table.php b/wp-admin/includes/class-wp-privacy-requests-table.php index 4b2332ff9a..05dbcbc031 100644 --- a/wp-admin/includes/class-wp-privacy-requests-table.php +++ b/wp-admin/includes/class-wp-privacy-requests-table.php @@ -102,6 +102,8 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { * * @since 4.9.6 * + * @global wpdb $wpdb WordPress database abstraction object. + * * @return object Number of posts for each status. */ protected function get_request_counts() { diff --git a/wp-includes/version.php b/wp-includes/version.php index 6706cfe036..7696493bf7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52238'; +$wp_version = '5.9-alpha-52239'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.