mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
03d2275051
commit
9e64321e41
@ -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 ) {
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user