mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Miscellaneous formatting corrections to inline docs and whitespace.
See #57840 git-svn-id: https://develop.svn.wordpress.org/trunk@55712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
90fb45dfdd
commit
9db82aa219
@ -3,7 +3,7 @@
|
|||||||
"name": "WordPress Core Development",
|
"name": "WordPress Core Development",
|
||||||
"dockerComposeFile": "docker-compose.yml",
|
"dockerComposeFile": "docker-compose.yml",
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
|
|||||||
@ -972,7 +972,7 @@ class WP_Theme_JSON {
|
|||||||
* the theme.json structure this object represents.
|
* the theme.json structure this object represents.
|
||||||
*
|
*
|
||||||
* @since 5.8.0
|
* @since 5.8.0
|
||||||
* @since 5.9.0 Removed the `$type` parameter`, added the `$types` and `$origins` parameters.
|
* @since 5.9.0 Removed the `$type` parameter, added the `$types` and `$origins` parameters.
|
||||||
*
|
*
|
||||||
* @param string[] $types Types of styles to load. Will load all by default. It accepts:
|
* @param string[] $types Types of styles to load. Will load all by default. It accepts:
|
||||||
* - `variables`: only the CSS Custom Properties for presets & custom ones.
|
* - `variables`: only the CSS Custom Properties for presets & custom ones.
|
||||||
@ -2749,12 +2749,12 @@ class WP_Theme_JSON {
|
|||||||
*
|
*
|
||||||
* For example:
|
* For example:
|
||||||
*
|
*
|
||||||
* array(
|
* array(
|
||||||
* 'color' => array(
|
* 'color' => array(
|
||||||
* 'palette' => array( 'slug-1', 'slug-2' ),
|
* 'palette' => array( 'slug-1', 'slug-2' ),
|
||||||
* 'gradients' => array( 'slug-3', 'slug-4' ),
|
* 'gradients' => array( 'slug-3', 'slug-4' ),
|
||||||
* ),
|
* ),
|
||||||
* )
|
* )
|
||||||
*
|
*
|
||||||
* @since 5.9.0
|
* @since 5.9.0
|
||||||
*
|
*
|
||||||
@ -3430,7 +3430,7 @@ class WP_Theme_JSON {
|
|||||||
$spacing_sizes[] = $above_sizes_item;
|
$spacing_sizes[] = $above_sizes_item;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are 7 or less steps in the scale revert to numbers for labels instead of t-shirt sizes.
|
// If there are 7 or fewer steps in the scale revert to numbers for labels instead of t-shirt sizes.
|
||||||
if ( $spacing_scale['steps'] <= 7 ) {
|
if ( $spacing_scale['steps'] <= 7 ) {
|
||||||
for ( $spacing_sizes_count = 0; $spacing_sizes_count < count( $spacing_sizes ); $spacing_sizes_count++ ) {
|
for ( $spacing_sizes_count = 0; $spacing_sizes_count < count( $spacing_sizes ); $spacing_sizes_count++ ) {
|
||||||
$spacing_sizes[ $spacing_sizes_count ]['name'] = (string) ( $spacing_sizes_count + 1 );
|
$spacing_sizes[ $spacing_sizes_count ]['name'] = (string) ( $spacing_sizes_count + 1 );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user