mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-08 16:41:44 +01:00
Twenty Twenty-One: Correct the DocBlock for map-deep-set()
Sass function.
Props mukesh27. Fixes #52064. Built from https://develop.svn.wordpress.org/trunk@49799 git-svn-id: http://core.svn.wordpress.org/trunk@49522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9494c5fbee
commit
71bbd2b166
@ -46,16 +46,16 @@
|
|||||||
@return $map;
|
@return $map;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ep set function to set a value in nested maps
|
// Deep set function to set a value in nested maps
|
||||||
// uthor Hugo Giraudel
|
// @author Hugo Giraudel
|
||||||
// ccess public
|
// @access public
|
||||||
// aram {Map} $map - Map
|
// @param {Map} $map - Map
|
||||||
// aram {List} $keys - Key chaine
|
// @param {List} $keys - Key chaine
|
||||||
// aram {*} $value - Value to assign
|
// @param {*} $value - Value to assign
|
||||||
// eturn {Map}
|
// @return {Map}
|
||||||
//
|
//
|
||||||
// ample:
|
// Example:
|
||||||
// _prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);
|
// $__prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);
|
||||||
@function map-deep-set($map, $keys, $value) {
|
@function map-deep-set($map, $keys, $value) {
|
||||||
$maps: ($map);
|
$maps: ($map);
|
||||||
$result: null;
|
$result: null;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
// If the last key is a map already
|
// If the last key is a map already
|
||||||
// Warn the user we will be overriding it with $value
|
// Warn the user we will be overriding it with $value
|
||||||
@if type-of(nth($keys, -1)) == "map" {
|
@if type-of(nth($keys, -1)) == "map" {
|
||||||
@warn "The last key you specified is a map; it will be overrided with `#{$value}`.";
|
@warn "The last key you specified is a map; it will be overridden with `#{$value}`.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// If $keys is a single key
|
// If $keys is a single key
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.7-alpha-49798';
|
$wp_version = '5.7-alpha-49799';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user