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
This commit is contained in:
Jb Audras 2021-11-24 11:39:14 +00:00
parent 03d2275051
commit 9e64321e41
2 changed files with 6 additions and 0 deletions

View File

@ -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 ) {

View File

@ -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() {