Changeset 58328 for trunk/src/wp-includes/theme.php
- Timestamp:
- 06/04/2024 11:53:37 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r58213 r58328 2643 2643 * @since 6.5.0 The `appearance-tools` feature enables a few design tools for blocks, 2644 2644 * see `WP_Theme_JSON::APPEARANCE_TOOLS_OPT_INS` for a complete list. 2645 * @since 6.6.0 The `editor-spacing-sizes` feature was added. 2645 2646 * 2646 2647 * @global array $_wp_theme_features … … 2670 2671 * - 'editor-gradient-presets' 2671 2672 * - 'editor-font-sizes' 2673 * - 'editor-spacing-sizes' 2672 2674 * - 'editor-styles' 2673 2675 * - 'featured-content' … … 4228 4230 ); 4229 4231 register_theme_feature( 4232 'editor-spacing-sizes', 4233 array( 4234 'type' => 'array', 4235 'description' => __( 'Custom spacing sizes if defined by the theme.' ), 4236 'show_in_rest' => array( 4237 'schema' => array( 4238 'items' => array( 4239 'type' => 'object', 4240 'properties' => array( 4241 'name' => array( 4242 'type' => 'string', 4243 ), 4244 'size' => array( 4245 'type' => 'string', 4246 ), 4247 'slug' => array( 4248 'type' => 'string', 4249 ), 4250 ), 4251 ), 4252 ), 4253 ), 4254 ) 4255 ); 4256 register_theme_feature( 4230 4257 'editor-styles', 4231 4258 array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)