Docs: Document the globals used in some Privacy API methods.
See #53399. Built from https://develop.svn.wordpress.org/trunk@52239 git-svn-id: http://core.svn.wordpress.org/trunk@51831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8bbb335cb
commit
c66d278da5
|
@ -125,6 +125,8 @@ final class WP_Privacy_Policy_Content {
|
||||||
* Output a warning when some privacy info has changed.
|
* Output a warning when some privacy info has changed.
|
||||||
*
|
*
|
||||||
* @since 4.9.6
|
* @since 4.9.6
|
||||||
|
*
|
||||||
|
* @global WP_Post $post Global post object.
|
||||||
*/
|
*/
|
||||||
public static function policy_text_changed_notice() {
|
public static function policy_text_changed_notice() {
|
||||||
global $post;
|
global $post;
|
||||||
|
@ -303,6 +305,8 @@ final class WP_Privacy_Policy_Content {
|
||||||
* @since 4.9.6
|
* @since 4.9.6
|
||||||
* @since 5.0.0 The `$post` parameter was made optional.
|
* @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.
|
* @param WP_Post|null $post The currently edited post. Default null.
|
||||||
*/
|
*/
|
||||||
public static function notice( $post = 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
|
* @since 4.9.6
|
||||||
*
|
*
|
||||||
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @return object Number of posts for each status.
|
* @return object Number of posts for each status.
|
||||||
*/
|
*/
|
||||||
protected function get_request_counts() {
|
protected function get_request_counts() {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-52238';
|
$wp_version = '5.9-alpha-52239';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue