Automattic\WooCommerce\Vendor\Sabberworm\CSS\RuleSet
DeclarationBlock::createShorthands
Deprecated since since 8.7.0, will be removed without substitution in version 9.0 in #511. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Creates shorthand declarations (e.g. margin or font) whenever possible.
Method of the class: DeclarationBlock{}
No Hooks.
Returns
void. Nothing (null).
Usage
$DeclarationBlock = new DeclarationBlock(); $DeclarationBlock->createShorthands();
Changelog
| Deprecated | Since 8.7.0 | , will be removed without substitution in version 9.0 in #511 |
DeclarationBlock::createShorthands() DeclarationBlock::createShorthands code WC 11.0.1
public function createShorthands()
{
$this->createBackgroundShorthand();
$this->createDimensionsShorthand();
// border must be shortened after dimensions
$this->createBorderShorthand();
$this->createFontShorthand();
$this->createListStyleShorthand();
}