Changeset 52321 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 12/04/2021 03:55:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r52320 r52321 217 217 * The top-level keys a theme.json can have. 218 218 * 219 * @since 5.8.0 220 * @since 5.9.0 Renamed from `ALLOWED_TOP_LEVEL_KEYS` ,219 * @since 5.8.0 As `ALLOWED_TOP_LEVEL_KEYS`. 220 * @since 5.9.0 Renamed from `ALLOWED_TOP_LEVEL_KEYS` to `VALID_TOP_LEVEL_KEYS`, 221 221 * added the `customTemplates` and `templateParts` values. 222 222 * @var string[] … … 233 233 * The valid properties under the settings key. 234 234 * 235 * @since 5.8.0 236 * @since 5.9.0 Renamed from `ALLOWED_SETTINGS` , added new properties237 * for `border`, `color`, `spacing`, and `typography`,238 * and renamed others according to the new schema.235 * @since 5.8.0 As `ALLOWED_SETTINGS`. 236 * @since 5.9.0 Renamed from `ALLOWED_SETTINGS` to `VALID_SETTINGS`, 237 * added new properties for `border`, `color`, `spacing`, 238 * and `typography`, and renamed others according to the new schema. 239 239 * @var array 240 240 */ … … 288 288 * The valid properties under the styles key. 289 289 * 290 * @since 5.8.0 291 * @since 5.9.0 Renamed from `ALLOWED_SETTINGS`, added new properties 292 * for `border`, `filter`, `spacing`, and `typography`. 290 * @since 5.8.0 As `ALLOWED_STYLES`. 291 * @since 5.9.0 Renamed from `ALLOWED_STYLES` to `VALID_STYLES`, 292 * added new properties for `border`, `filter`, `spacing`, 293 * and `typography`. 293 294 * @var array 294 295 */ … … 745 746 * } 746 747 * 747 * @since 5.8.0 748 * @since 5.8.0 As `get_block_styles()`. 748 749 * @since 5.9.0 Renamed from `get_block_styles()` to `get_block_classes()` 749 750 * and no longer returns preset classes. 751 * Removed the `$setting_nodes` parameter. 750 752 * 751 753 * @param array $style_nodes Nodes with styles. … … 1544 1546 * 1545 1547 * @param array $data A theme.json like structure to inspect. 1546 * @param array $node_path The path to inspect. Default is 'settings'.1548 * @param array $node_path The path to inspect. Default `array( 'settings' )`. 1547 1549 * @return array An associative array containing the slugs for the given path. 1548 1550 */
Note: See TracChangeset
for help on using the changeset viewer.