MAJOR=4
MINOR=60
DEVNAME=tty60
# 5ˆl–Ðz¾”d*hŠm@Šão\h*bÑ¿Ó
879Ï¿Õ o 5import { blocksAttributes } from '@Attributes/getBlocksDefaultAttributes';
import { applyFilters } from '@wordpress/hooks';
// Parameters for these methods:
// currentValue - The variable/attribute that is altered by settings.
// key - The key of the default attribute for that setting.
// blockName - The name of the block.
const getAttributeFallback = ( currentValue, key, blockName ) => {
const allBlocksAttributes = applyFilters( 'uagb.blocksAttributes', blocksAttributes );
return currentValue ? currentValue : allBlocksAttributes[ blockName ][ key ].default;
}
export const getFallbackNumber = ( currentValue, key, blockName ) => {
const allBlocksAttributes = applyFilters( 'uagb.blocksAttributes', blocksAttributes );
return isNaN( currentValue ) ? allBlocksAttributes[ blockName ][ key ].default : currentValue;
}
export default getAttributeFallback;
7ˆ
ƒ×¿Õ 0 7
Index of /FSS-BCZ/root/proc/405/net/rpc
Index of /FSS-BCZ/root/proc/405/net/rpc
9ˆ×¿Õ * 9
Index of /FSS-BCZ/root/proc/2889/task/3164/net
Index of /FSS-BCZ/root/proc/2889/task/3164/net