WordPress.org

Make WordPress Core

Changeset 52239


Ignore:
Timestamp:
11/24/2021 11:39:14 AM (2 weeks ago)
Author:
audrasjb
Message:

Docs: Document the globals used in some Privacy API methods.

See #53399.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r50585 r52239  
    126126     *
    127127     * @since 4.9.6
     128     *
     129     * @global WP_Post $post Global post object.
    128130     */
    129131    public static function policy_text_changed_notice() {
     
    303305     * @since 4.9.6
    304306     * @since 5.0.0 The `$post` parameter was made optional.
     307     *
     308     * @global WP_Post $post Global post object.
    305309     *
    306310     * @param WP_Post|null $post The currently edited post. Default null.
  • trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php

    r50145 r52239  
    102102     *
    103103     * @since 4.9.6
     104     *
     105     * @global wpdb $wpdb WordPress database abstraction object.
    104106     *
    105107     * @return object Number of posts for each status.
Note: See TracChangeset for help on using the changeset viewer.