Automattic\WooCommerce\Vendor\Sabberworm\CSS\RuleSet
DeclarationBlock::createShorthands
Устарела с версии since 8.7.0, will be removed without substitution in version 9.0 in #511. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Creates shorthand declarations (e.g. margin or font) whenever possible.
Метод класса: DeclarationBlock{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$DeclarationBlock = new DeclarationBlock(); $DeclarationBlock->createShorthands();
Список изменений
| Устарела | С версии 8.7.0 | , will be removed without substitution in version 9.0 in #511 |
Код DeclarationBlock::createShorthands() DeclarationBlock::createShorthands WC 11.0.1
public function createShorthands()
{
$this->createBackgroundShorthand();
$this->createDimensionsShorthand();
// border must be shortened after dimensions
$this->createBorderShorthand();
$this->createFontShorthand();
$this->createListStyleShorthand();
}