Skip to content

Commit

Permalink
Docs: Document the globals used in some Privacy API methods.
Browse files Browse the repository at this point in the history
See #53399.


git-svn-id: https://develop.svn.wordpress.org/trunk@52239 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Nov 24, 2021
1 parent 03d2275 commit 9e64321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wp-admin/includes/class-wp-privacy-policy-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ) {
Expand Down
2 changes: 2 additions & 0 deletions src/wp-admin/includes/class-wp-privacy-requests-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9e64321

Please sign in to comment.