From 9e64321e41f2bee34957671632a5a49be897e98d Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 24 Nov 2021 11:39:14 +0000 Subject: [PATCH] Docs: Document the globals used in some Privacy API methods. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@52239 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-privacy-policy-content.php | 4 ++++ src/wp-admin/includes/class-wp-privacy-requests-table.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/wp-admin/includes/class-wp-privacy-policy-content.php b/src/wp-admin/includes/class-wp-privacy-policy-content.php index bbe479172e0eb..54e5326ccbdf8 100644 --- a/src/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/src/wp-admin/includes/class-wp-privacy-policy-content.php @@ -125,6 +125,8 @@ public static function text_change_check() { * 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 @@ public static function get_suggested_policy_text() { * @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/src/wp-admin/includes/class-wp-privacy-requests-table.php b/src/wp-admin/includes/class-wp-privacy-requests-table.php index 4b2332ff9af83..05dbcbc03128f 100644 --- a/src/wp-admin/includes/class-wp-privacy-requests-table.php +++ b/src/wp-admin/includes/class-wp-privacy-requests-table.php @@ -102,6 +102,8 @@ protected function get_default_primary_column_name() { * * @since 4.9.6 * + * @global wpdb $wpdb WordPress database abstraction object. + * * @return object Number of posts for each status. */ protected function get_request_counts() {