mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Add missing @since
tag to WP_Theme_JSON_Schema
functions.
Follow-up to [52049]. See #53399, #54336. Built from https://develop.svn.wordpress.org/trunk@52306 git-svn-id: http://core.svn.wordpress.org/trunk@51898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d6493056b
commit
ef4fe197b8
@ -14,6 +14,7 @@
|
||||
* This is a low-level API that may need to do breaking changes. Please,
|
||||
* use get_global_settings, get_global_styles, and get_global_stylesheet instead.
|
||||
*
|
||||
* @since 5.9.0
|
||||
* @access private
|
||||
*/
|
||||
class WP_Theme_JSON_Schema {
|
||||
@ -32,6 +33,8 @@ class WP_Theme_JSON_Schema {
|
||||
/**
|
||||
* Function that migrates a given theme.json structure to the last version.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param array $theme_json The structure to migrate.
|
||||
*
|
||||
* @return array The structure in the last version.
|
||||
@ -59,6 +62,8 @@ class WP_Theme_JSON_Schema {
|
||||
* 'spacing.customPadding' => 'spacing.padding',
|
||||
* 'typography.customLineHeight' => 'typography.lineHeight',
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param array $old Data to migrate.
|
||||
*
|
||||
* @return array Data without the custom prefixes.
|
||||
@ -81,6 +86,8 @@ class WP_Theme_JSON_Schema {
|
||||
/**
|
||||
* Processes the settings subtree.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param array $settings Array to process.
|
||||
* @param array $paths_to_rename Paths to rename.
|
||||
*
|
||||
@ -105,6 +112,8 @@ class WP_Theme_JSON_Schema {
|
||||
/**
|
||||
* Processes a settings array, renaming or moving properties.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param array $settings Reference to settings either defaults or an individual block's.
|
||||
* @param arary $paths_to_rename Paths to rename.
|
||||
*/
|
||||
@ -124,6 +133,8 @@ class WP_Theme_JSON_Schema {
|
||||
/**
|
||||
* Removes a property from within the provided settings by its path.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param array $settings Reference to the current settings array.
|
||||
* @param array $path Path to the property to be removed.
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-beta1-52305';
|
||||
$wp_version = '5.9-beta1-52306';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user