From ddd4ac93a1da35c7de9ac1ad8ce0ff79d6cebc7e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Jun 2021 11:23:09 +0000 Subject: [PATCH] Docs: Document the `VALID_ORIGINS` constant in `WP_Theme_JSON`. Follow-up to [51149]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@51152 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme-json.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index f723c415a4..2293ea5715 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -40,6 +40,12 @@ class WP_Theme_JSON { */ const ROOT_BLOCK_SELECTOR = 'body'; + /** + * The sources of data this object can represent. + * + * @since 5.8.0 + * @var array + */ const VALID_ORIGINS = array( 'core', 'theme',