Changeset 52321
- Timestamp:
- 12/04/2021 03:55:03 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r52320 r52321 64 64 * Container to keep loaded i18n schema for `theme.json`. 65 65 * 66 * @since 5.8.0 67 * @since 5.9.0 Renamed from `$theme_json_i18n` .66 * @since 5.8.0 As `$theme_json_i18n`. 67 * @since 5.9.0 Renamed from `$theme_json_i18n` to `$i18n_schema`. 68 68 * @var array 69 69 */ … … 224 224 * @since 5.9.0 225 225 * 226 * @param WP_Theme $theme The theme object. 226 * @param WP_Theme $theme The theme object. If empty, it 227 227 * defaults to the current theme. 228 228 * @param bool $should_create_cpt Optional. Whether a new custom post 229 229 * type should be created if none are 230 * found. False by default.231 * @param array $post_status_filter Filter Optional.custom post type by232 * post status. ['publish'] by default,230 * found. Default false. 231 * @param array $post_status_filter Optional. Filter custom post type by 232 * post status. Default `array( 'publish' )`, 233 233 * so it only fetches published posts. 234 234 * @return array Custom Post Type for the user's origin config. -
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.