Changeset 52302
- Timestamp:
- 12/01/2021 11:14:22 PM (3 years ago)
- Location:
- trunk/src/wp-includes/block-supports
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/align.php
r51246 r52302 32 32 33 33 /** 34 * Add CSS classes for block alignment to the incoming attributes array.34 * Adds CSS classes for block alignment to the incoming attributes array. 35 35 * This will be applied to the block markup in the front-end. 36 36 * … … 40 40 * @param WP_Block_Type $block_type Block Type. 41 41 * @param array $block_attributes Block attributes. 42 *43 42 * @return array Block alignment CSS classes and inline styles. 44 43 */ -
trunk/src/wp-includes/block-supports/border.php
r52069 r52302 48 48 * @param WP_Block_Type $block_type Block type. 49 49 * @param array $block_attributes Block attributes. 50 *51 50 * @return array Border CSS classes and inline styles. 52 51 */ … … 146 145 * 147 146 * @param WP_Block_Type $block_type Block type. 148 * 149 * @return bool147 * @return bool Whether serialization of the current block's border properties 148 * should occur. 150 149 */ 151 150 function wp_skip_border_serialization( $block_type ) { -
trunk/src/wp-includes/block-supports/dimensions.php
r52069 r52302 41 41 42 42 /** 43 * Add CSS classes for block dimensions to the incoming attributes array.43 * Adds CSS classes for block dimensions to the incoming attributes array. 44 44 * This will be applied to the block markup in the front-end. 45 45 * … … 49 49 * @param WP_Block_Type $block_type Block Type. 50 50 * @param array $block_attributes Block attributes. 51 *52 51 * @return array Block dimensions CSS classes and inline styles. 53 52 */ … … 73 72 * 74 73 * @param WP_Block_type $block_type Block type. 75 * 76 * @return boolean Whether to serialize spacing support styles & classes. 74 * @return bool Whether to serialize spacing support styles & classes. 77 75 */ 78 76 function wp_skip_dimensions_serialization( $block_type ) { -
trunk/src/wp-includes/block-supports/layout.php
r52161 r52302 36 36 * @access private 37 37 * 38 * @param string $selectorCSS selector.39 * @param array $layout Layout object. The one that is passed has already checked the existance of default block layout.40 * @param boolean $has_block_gap_support Whether the theme has support for the block gap.41 * 38 * @param string $selector CSS selector. 39 * @param array $layout Layout object. The one that is passed has already checked 40 * the existance of default block layout. 41 * @param bool $has_block_gap_support Whether the theme has support for the block gap. 42 42 * @return string CSS style. 43 43 */ … … 217 217 * @param string $block_content Rendered block content. 218 218 * @param array $block Block object. 219 *220 219 * @return string Filtered block content. 221 220 */ -
trunk/src/wp-includes/block-supports/spacing.php
r52069 r52302 42 42 * @param WP_Block_Type $block_type Block Type. 43 43 * @param array $block_attributes Block attributes. 44 *45 44 * @return array Block spacing CSS classes and inline styles. 46 45 */ … … 87 86 * 88 87 * @param WP_Block_Type $block_type Block type. 89 * 90 * @return boolean Whether to serialize spacing support styles & classes. 88 * @return bool Whether to serialize spacing support styles & classes. 91 89 */ 92 90 function wp_skip_spacing_serialization( $block_type ) { … … 105 103 * @access private 106 104 * 107 * @param 108 * @param 109 * @return string 105 * @param string $block_content Rendered block content. 106 * @param array $block Block object. 107 * @return string Filtered block content. 110 108 */ 111 109 function wp_render_spacing_gap_support( $block_content, $block ) { -
trunk/src/wp-includes/block-supports/typography.php
r52069 r52302 61 61 62 62 /** 63 * Add CSS classes and inline styles for typography features such as font sizes63 * Adds CSS classes and inline styles for typography features such as font sizes 64 64 * to the incoming attributes array. This will be applied to the block markup in 65 65 * the front-end. … … 68 68 * @access private 69 69 * 70 * @param WP_Block_Type $block_type Block type. 71 * @param array $block_attributes Block attributes. 72 * 70 * @param WP_Block_Type $block_type Block type. 71 * @param array $block_attributes Block attributes. 73 72 * @return array Typography CSS classes and inline styles. 74 73 */ … … 193 192 * @param string $feature Key for the feature within the typography styles. 194 193 * @param string $css_property Slug for the CSS property the inline style sets. 195 * 196 * @return string CSS inline style. 194 * @return string CSS inline style. 197 195 */ 198 196 function wp_typography_get_css_variable_inline_style( $attributes, $feature, $css_property ) {
Note: See TracChangeset
for help on using the changeset viewer.